This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enhancement patch for cpp
- To: zack at rabi dot columbia dot edu (Zack Weinberg)
- Subject: Re: Enhancement patch for cpp
- From: Ben Elliston <bje at cygnus dot com>
- Date: 20 Jan 1999 13:17:14 +0100
- Cc: brolley at cygnus dot com, egcs-patches at cygnus dot com
- References: <36A4CA7B.CFF982A1@cygnus.com> <199901191937.OAA26799.cygnus.egcs.patches@blastula.phys.columbia.edu>
zack@rabi.columbia.edu (Zack Weinberg) writes:
> I meant that the warnings are repeated for each compiler invocation.
> For even a small number of source (.c) files in a package, that would
> get annoying fast.
So does compiling applications that use /usr/include/X11 when the
function prototypes assume the `int' return type! Nevertheless, the
warnings are correct.
The problem I had with adding a `-Wmissing-include-dirs' flag was that
the warning is most sensibly issued as the -I arguments are process.
Unless the -W warning option is used before the -I options on the
command line, the warning will not fire.
Without adding explicit code to walk through the include search path
*after* argument processing, adding a -W switch seems
unworkable. Suggestions?
Ben