g++ no longer ignoring some warning flags?

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Thu Sep 23 08:42:00 GMT 1999


On Thu, 23 Sep 1999, Kaveh R. Ghazi wrote:
> I used to be able to bootstrap with special WARN_CFLAGS and
> when g++ was run, it ignored the irrelevant ones.  Now I get an error
> during bootstrap:
>
>> cc1plus: Invalid option `-Wstrict-prototypes'
>> cc1plus: Invalid option `-Wmissing-declarations'
>> cc1plus: Invalid option `-Wmissing-noreturn'
>> cc1plus: Invalid option `-Wtraditional'
>> cc1plus: Invalid option `-Wbad-function-cast'
>> make[5]: *** [tinfo.o] Error 1
>
> 	This had worked as recently as Friday, 9/17.
> 
> Can we please restore the old behavior?

Please don't!

With the old behavior g++ would simply ignore these unsupported options
silently, making the user believe that they *were* actually supported.

We could issue warnings instead of errors, but being silent in that case
is not a good solution, IMHO.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/



More information about the Gcc-bugs mailing list