This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] Fix setenv.c diagnostic pragma to be compatible with GCC 4.6
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 5 Jun 2015 14:04:41 -0700 (PDT)
- Subject: Re: [COMMITTED PATCH] Fix setenv.c diagnostic pragma to be compatible with GCC 4.6
- Authentication-results: sourceware.org; auth=none
- References: <20150602200030 dot 94E542C3AB9 at topped-with-meat dot com> <m2a8whj1bu dot fsf at linux-m68k dot org>
> > +#if ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)
> __GNUC_PREREQ (4, 7)
Other comments in the file gave me the impression that the pragma needs to
come before header includes (hence why it's not using the preferred macro
DIAG_IGNORE_NEEDS_COMMENT).