diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-01 16:27:44 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-01 13:00:03 -0400 |
commit | a952fcda58cd7aa191140fc9e7d453df212b9117 (patch) | |
tree | 68d8791092cf7dea91e41bfd21d7ead4812c0b6e /nptl_db | |
parent | b97c5efdcae89d17c8ea715a5b814aab9d3cf618 (diff) | |
download | glibc-a952fcda58cd7aa191140fc9e7d453df212b9117.zip glibc-a952fcda58cd7aa191140fc9e7d453df212b9117.tar.gz glibc-a952fcda58cd7aa191140fc9e7d453df212b9117.tar.bz2 |
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>
Diffstat (limited to 'nptl_db')
-rw-r--r-- | nptl_db/thread_dbP.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl_db/thread_dbP.h b/nptl_db/thread_dbP.h index 8845722..b52c254 100644 --- a/nptl_db/thread_dbP.h +++ b/nptl_db/thread_dbP.h @@ -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) |