This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]