changes in -Wall

Jeffrey A Law law@cygnus.com
Thu Sep 10 11:12:00 GMT 1998


  In message < 199809100946.LAA02645@orcanie.shfj.cea.fr >you write:
  > >   > * The first one seems in contradiction with the documentation:
  > >   >   	/usr/openwin/include/GL/gl.h:1: warning: ignoring pragma: ignored
  > > I'd bet /usr/openwin isn't considered a system header by the compiler.
  > > 
  > > Generally system headers are those which live under /usr/include.
  > 
  > OK. But this problem didn't occur in egcs-1.0.3a.
  > What has changed? Why?
egcs-1.0.3a did not warn about unrecognized pragmas.  There is an
option to turn that warning off.

  > Of course. Sun's system headers are also full of bugs.
  > I understand that some of them are rewritten by egcs in
  > 	lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/include
  > But what's the point of reporting warnings in system files?
  > Do we expect users of egcs to correct the X11 headers?
Get the vendor to fix them.  This is not an egcs issue.

While egcs does copy & hack some include files, it does so only in
cases there the system header files are going to cause incorrect code,
bogus errors, namespace violations and such.  The include hacking is
not for fixing trivial errors which cause warnings.

jeff



More information about the Gcc-bugs mailing list