From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 2A468385482E; Wed, 30 Aug 2023 12:33:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A468385482E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693398826; bh=Ezj8KI0wNWLAl9BInqXxNvc31kIIlM6lmMoI91mmONo=; h=From:To:Subject:Date:From; b=fWCVDbgIt03RwoGi5SQQhK+irHSKUDJsgkR8gTZhhM5PE26+4XjEBj/yPt+d3An9D MOqouV+fVYGYI6iDm75ufeM2NCgnmCCzKxdI7GtAkfKF/MtWJdNGEQZyJarDguC3il O8ILccYnTCM5ZIKeIbBWYq8WDOWVDu2x3XBDkkf8= 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] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: a458e9bea561c395fc5462a7e68d34b21e2c6564 X-Git-Newrev: 14e14d131d84a2c1c144962b00eeb42be4d44c92 Message-Id: <20230830123346.2A468385482E@sourceware.org> Date: Wed, 30 Aug 2023 12:33:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=14e14d131d84a2c1c144962b00eeb42be4d44c92 commit 14e14d131d84a2c1c144962b00eeb42be4d44c92 Author: Adhemerval Zanella Date: Tue Mar 8 17:37:11 2022 -0300 stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c Checked on x86_64-linux-gnu. Diff: --- stdlib/setenv.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stdlib/setenv.c b/stdlib/setenv.c index cc71287fcc..02e418522d 100644 --- a/stdlib/setenv.c +++ b/stdlib/setenv.c @@ -19,12 +19,14 @@ # include #endif +#if _LIBC +# include /* Pacify GCC; see the commentary about VALLEN below. This is needed at least through GCC 4.9.2. Pacify GCC for the entire file, as there seems to be no way to pacify GCC selectively, only for the - place where it's needed. Do not use DIAG_IGNORE_NEEDS_COMMENT - here, as it's not defined yet. */ -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + place where it's needed. */ +DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized"); +#endif #include #if !_LIBC