c/2677: Need something to #ifdef on when -pedantic/-pedantic-errors
Joseph S. Myers
jsm28@cam.ac.uk
Sat Apr 28 12:55:00 GMT 2001
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
More information about the Gcc-bugs
mailing list