From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 823033858028; Thu, 9 Feb 2023 19:45:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 823033858028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675971936; bh=nYo5LozKvG0taRYqjd+mC6z2QsH+llI7aQp4inX9H7c=; h=From:To:Subject:Date:From; b=tVUoQ6pcU87dhRbRLTm7GPPJG9yo6kFzdFjq4GWFsytI8Ia/s6LCgr1m+BQoVIV3X +2XAS5Mp202jqz9NLiQ135Xw6gPiw6NcCocr99OmlsXfKmW/HQPgRln8L/x2I62rAr KnKQTaU0o1wLH7V4lRud4i36kkW3AFTE7zv2quF8= 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: ea565d6dbc6adbcecc7e2eeb9f1875fd0d268fd5 X-Git-Newrev: 084a6ab96f67328c543f697d983977448f1ee912 Message-Id: <20230209194536.823033858028@sourceware.org> Date: Thu, 9 Feb 2023 19:45:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=084a6ab96f67328c543f697d983977448f1ee912 commit 084a6ab96f67328c543f697d983977448f1ee912 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 ba5257d3bf..dda7a4a9c2 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