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: -Wno-return-type doesn't seem to work.


On Wed, 11 Aug 1999, Martin v. Loewis wrote:

> > On DEC Unix the include files are also full of shit but no warnings
> > from gcc.
> > 
> > Conclusion: On DEC Unix this "in_system_include" works.
> > 
> > Maybe its just the funny "/usr/openwin/" location of the include files
> > on the Sun?
> 
> Yes, that is the technical reason why you get the warnings on Solaris.
> in_system_include works as designed - not to produce diagnostics of
> certain categories if the error is in a system header, for a
> well-defined set of system headers. /usr/openwin is not in this set.
> 
> However, a patch to add /usr/openwin to the system includes will most
> likely be rejected; it would have a number of other undesirable
> consequences.
> 

On my Solaris systems (2.6, 2.7), /usr/include/X11 is a symlink to
/usr/openwin/include/X11. If you use this path to get to the headers,
would gcc not think they are system headers?

--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444



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