This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++: X11 header warnings not suppressed
- To: Christian Lacunza <clacunza at netscape dot com>
- Subject: Re: g++: X11 header warnings not suppressed
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 26 Feb 2000 16:25:42 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <14519.33640.516774.319667@gt40.netscape.com>
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