From a952fcda58cd7aa191140fc9e7d453df212b9117 Mon Sep 17 00:00:00 2001 From: Frédéric Bérat Date: Thu, 1 Jun 2023 16:27:44 +0200 Subject: 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 --- nptl_db/thread_dbP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nptl_db') diff --git a/nptl_db/thread_dbP.h b/nptl_db/thread_dbP.h index 8845722109..b52c254300 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) -- cgit 1.4.1