From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 7E9D23857B97; Fri, 28 Oct 2022 17:42:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E9D23857B97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666978976; bh=hbMHFyFKSatUfVRAUlHdn57zRcb6qVm7xoHEPyQBm9I=; h=From:To:Subject:Date:From; b=Kw8+6qWTNC4/R0qY/8VGobJIj5M32ES6z2ER2AWQ1m3NHw7WRmTNPMFTpMh8TZ9Q8 S2r00uv1vXKkM9RDDoD5ztRKpIk7EGj3FofQjTNNp8Rx5hVjc4MVxv9x4FgUFjC3G1 m/Bb2odVK6v/CZ9QUMAmNgLHVK5OHI5jsNVg0Fxs= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 66bed010093946fb8c6589cc2c175ff6db8cd8ef X-Git-Newrev: 51092741a03f21efcca20ba78ad66d8dfd5facac Message-Id: <20221028174256.7E9D23857B97@sourceware.org> Date: Fri, 28 Oct 2022 17:42:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=51092741a03f21efcca20ba78ad66d8dfd5facac commit 51092741a03f21efcca20ba78ad66d8dfd5facac Author: Adhemerval Zanella Date: Tue Mar 15 15:33:02 2022 -0300 math: Fix clang warnings for math/test-tgmath-ret.c clang warns that since the global variables are only used to function calls (without being actually used), there are not needed and will not be emitted. Diff: --- math/test-tgmath-ret.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c index dd054bef7e..96e6108cf2 100644 --- a/math/test-tgmath-ret.c +++ b/math/test-tgmath-ret.c @@ -21,13 +21,20 @@ #include #include #include +#include +/* clang warns that since the global variables are only used to function + calls (without being actually used), there are not needed and will not + be emitted. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration"); static float fx; static double dx; static long double lx; static int rm = FP_INT_UPWARD; static unsigned int width = 64; static int errors = 0; +DIAG_POP_NEEDS_COMMENT_CLANG; static void our_error (const char *c)