This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: Silence pedantic warnings at header file level
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Danny Smith" <danny_r_smith_2001 at yahoo dot co dot nz>,"cygwin-patches" <cygwin-patches at cygwin dot com>
- Date: Tue, 5 Mar 2002 09:46:02 +1100
- Subject: RE: Silence pedantic warnings at header file level
Would this also fix the 'is not a prototype' error that cinstall
experiences?
Rob
> -----Original Message-----
> From: Danny Smith [mailto:danny_r_smith_2001@yahoo.co.nz]
> Sent: Tuesday, March 05, 2002 9:44 AM
> To: cygwin-patches
> Subject: RFC: Silence pedantic warnings at header file level
>
>
> GCC 3.x has a a new pragma that causes the rest of the code
> in the current file to be treated as if it came from a system header
>
> Putting this right after the header guard of runtime and
> w32api headers would silence all the "long long" and
> bitfield pedantic warnings that still occur. It would also
> allow cleanup of the anonymous union __extension__ business.
>
> #if defined __GNUC__ && __GNUC__ >= 3
> #pragma GCC system_header
> #endif
>
>
> This approach is used in GCC's STL headers.
>
> Any comments
>
> Danny
>
http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.