public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] nptl_db/thread_dbP.h: fix warn unused result Date: Thu, 1 Jun 2023 17:24:23 +0000 (GMT) [thread overview] Message-ID: <20230601172423.2A7743857357@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a952fcda58cd7aa191140fc9e7d453df212b9117 commit a952fcda58cd7aa191140fc9e7d453df212b9117 Author: Frédéric Bérat <fberat@redhat.com> Date: Thu Jun 1 16:27:44 2023 +0200 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> Diff: --- nptl_db/thread_dbP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)
reply other threads:[~2023-06-01 17:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230601172423.2A7743857357@sourceware.org \ --to=siddhesh@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).