mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
nptl_db/thread_dbP.h: fix warn unused result
Fix unused result warnings, detected when _FORTIFY_SOURCE is enabled in glibc. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
b97c5efdca
commit
a952fcda58
@ -61,7 +61,9 @@ enum
|
||||
|
||||
/* Comment out the following for less verbose output. */
|
||||
#ifndef NDEBUG
|
||||
# define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n"))
|
||||
# define LOG(c) \
|
||||
if (__td_debug) \
|
||||
assert (write (2, c "\n", strlen (c "\n")) == strlen (c "\n"))
|
||||
extern int __td_debug attribute_hidden;
|
||||
#else
|
||||
# define LOG(c)
|
||||
|
Loading…
Reference in New Issue
Block a user