From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2206) id 2A7743857357; Thu, 1 Jun 2023 17:24:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A7743857357 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685640263; bh=fy/4A4IyLQt9y99331T8z5L31upmJyBAC9TmHUChiT8=; h=From:To:Subject:Date:From; b=i6FOTcqi/sVFQ4wyqWVoMFWto7Z6fiZgdKFlW0Ow+ADMbgeLXWbkhYIxYyyB4eoz+ j9mnHG9vommV81IWwjydO660AYVLrvKX3jJ3g7LsbNrQzFYG8ALMmW73GNDbpotKOZ ox+NmdzYkLslex2+dlCeUyppc8tgcMH1Zlg7aYxg= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Siddhesh Poyarekar To: glibc-cvs@sourceware.org Subject: [glibc] nptl_db/thread_dbP.h: fix warn unused result X-Act-Checkin: glibc X-Git-Author: =?utf-8?b?RnLDqWTDqXJpYyBCw6lyYXQ=?= X-Git-Refname: refs/heads/master X-Git-Oldrev: b97c5efdcae89d17c8ea715a5b814aab9d3cf618 X-Git-Newrev: a952fcda58cd7aa191140fc9e7d453df212b9117 Message-Id: <20230601172423.2A7743857357@sourceware.org> Date: Thu, 1 Jun 2023 17:24:23 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a952fcda58cd7aa191140fc9e7d453df212b9117 commit a952fcda58cd7aa191140fc9e7d453df212b9117 Author: Frédéric Bérat 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 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)