mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +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. */
|
/* Comment out the following for less verbose output. */
|
||||||
#ifndef NDEBUG
|
#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;
|
extern int __td_debug attribute_hidden;
|
||||||
#else
|
#else
|
||||||
# define LOG(c)
|
# define LOG(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user