This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: g++: X11 header warnings not suppressed


On Feb 26, 2000, Christian Lacunza <clacunza@netscape.com> wrote:

> i tried several -Wno-* switches to suppress the "no type" warnings...
> they seem to be accepted, but ignored.

Yup; in C++, -fpermissive only turns those errors into warnings.

> nameless$ g++ -v -o x x.cc -I /usr/X/include/ -lX11 -fpermissive -Wno-implicit -Wno-return-type -Wno-implicit-int

Replace `-I' with `-isystem'.  GCC doesn't warn about such errors in
system header files.

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaranį
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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