From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 31858385DC26; Wed, 30 Aug 2023 12:37:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31858385DC26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399070; bh=n0aHMkHxpezdrLQd5CYOzddd50NBgSjOawyEEbtTE2s=; h=From:To:Subject:Date:From; b=wpZrTLQ2E2wK+NkVmbI1ZEDpBfxMtaPy6ciKIK5Z6SQmKj5DMe3eoszIInDmQiP0u QVAUDLjT1LEuZ9tu0FCwj2n4BD9DEOQRX3x8xCqJ/8If910FKXbJ8KRaG4kGrPpH31 GySMDvTJXxcf7xhyGzU8dO/ZGunRDjoNVc7B3ADk= 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: b4240e5f3a2d8d94ce2c98920cb20489289f35a2 X-Git-Newrev: 091e6bcdc35b2a5c1d034c8d7bb0fba443ce36bf Message-Id: <20230830123750.31858385DC26@sourceware.org> Date: Wed, 30 Aug 2023 12:37:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=091e6bcdc35b2a5c1d034c8d7bb0fba443ce36bf commit 091e6bcdc35b2a5c1d034c8d7bb0fba443ce36bf 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 f31828d6a6..efbc10af5b 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)