This is the mail archive of the gcc-patches@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: Enhancement patch for cpp


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


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