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: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Tue, 5 Mar 2002 10:28:00 +1100 (EST)
- Subject: RE: Silence pedantic warnings at header file level
--- Robert Collins <robert.collins@itdomain.com.au> wrote: > Would this
also fix the 'is not a prototype' error that cinstall
> experiences?
>
> Rob
>
Compiling w32api/lib/test.c with
gcc -I../include -Wall -Wstrict-prototypes -Wmissing-prototypes -pedantic
test.c >err.log
does not give that warning after installing the patch to w32api headers.
<snip>
Chris, the reason I did this
> > #if defined __GNUC__ && __GNUC__ >= 3
is beacuse I've seen this test so often lately
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
and its stuck in my head
Also, the w32api headers are being used by Open Watcom (or whatever its
called) folk and I don't know anything about there preprocessor.
Danny
http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.