From: <dan...@ya...> - 2001-04-13 21:30:02
|
--- Earnie Boyd <ear...@ya...> wrote: > What do others (especially Danny) on this list think of this patch? > > Earnie. > > -------- Original Message -------- > Subject: w32api and gcc -pedantic > Date: Fri, 13 Apr 2001 23:10:57 +0400 > From: egor duda <de...@lo...> > Reply-To: egor duda <cyg...@cy...> > Organization: deo > To: cyg...@cy... > > Hi! > > w32api headers currently contain a number of anonymous structs and > unions. So, gcc prints a bunch of warnings when invoked with -pedantic > on program which #include <windows.h>. this patch is to avoid those > warnings. > > egor. mailto:de...@lo... icq 5165414 fidonet 2:5020/496.19 My reading of C99 standard (section 6.7.2.1) is that nameless unions/structures are now part of standard. The fix should go into GCC not the mingw headers. GCC -pedantic -std=iso9899:199x should not raise warnings about unnamed structures; GCC -pedantic -std=iso9899:199409 should. I think the warnings should stay for now, since they are extensions to the currently supported standard. Danny _____________________________________________________________________________ http://movies.yahoo.com.au - Yahoo! Movies - Now showing: Dude Where's My Car, The Wedding Planner, Traffic.. |