From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Joseph S. Myers" To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c/2677: Need something to #ifdef on when -pedantic/-pedantic-errors Date: Sat, 28 Apr 2001 12:56:00 -0000 Message-id: <20010428195600.29122.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00688.html List-Id: The following reply was made to PR c/2677; it has been noted by GNATS. From: "Joseph S. Myers" To: Cc: , Subject: Re: c/2677: Need something to #ifdef on when -pedantic/-pedantic-errors Date: Sat, 28 Apr 2001 20:55:32 +0100 (BST) 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