1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix setenv.c diagnostic pragma to be compatible with GCC 4.6

This commit is contained in:
Roland McGrath
2015-06-02 12:58:45 -07:00
parent 71bf272d91
commit 6cfae52edf
2 changed files with 10 additions and 1 deletions

View File

@ -24,7 +24,11 @@
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"
#if ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#else
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif
#include <errno.h>
#if !_LIBC