It is intended that -Wall over-ride specific flags?

Bruce Korb bruce.korb@gmail.com
Thu Aug 9 20:37:00 GMT 2012


Hi,

This command:

    gcc -Wno-format-contains-nul -Wall -Werror

falls over if a format string contains a nul byte.
I think it should not.  There needs to be a way for
collective warning options (e.g. "-Wall") to skip
over anything set by a more specific option.
("format-contains-nul" being fairly specific.)

If agreed, I'll supply some patch when I find that
round tuit I misplaced.

Thanks - Bruce



More information about the Gcc mailing list