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:
Frédéric Bérat 2023-06-01 16:27:44 +02:00 committed by Siddhesh Poyarekar
parent b97c5efdca
commit a952fcda58

View File

@ -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)