This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/2677: Need something to #ifdef on when -pedantic/-pedantic-errors
- To: <rfg at monkeys dot com>
- Subject: Re: c/2677: Need something to #ifdef on when -pedantic/-pedantic-errors
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sat, 28 Apr 2001 20:55:32 +0100 (BST)
- cc: <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
On 28 Apr 2001 rfg@monkeys.com wrote:
> Build and install the glib library (version 1.2 or 1.3.4)
> and associated include files. Then compile something that
> includes "glib.h" and do so while using the -pedantic or
> -pedantic-errors option. You'll get warnings or errors,
> respectively, because glib.h uses the non-standard GNU
> notation for macros accepting variable numbers of arguments.
3.0 does not give these warnings for system headers, or macros defined in
system headers.
(You'll need to ensure that the glib headers do count as system headers,
e.g. by adding
#if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC_MINOR >= 97)
#pragma GCC system_header
#endif
.)
--
Joseph S. Myers
jsm28@cam.ac.uk