It is intended that -Wall over-ride specific flags?
Andrew Pinski
pinskia@gmail.com
Thu Aug 9 20:42:00 GMT 2012
On Thu, Aug 9, 2012 at 1:37 PM, Bruce Korb <bruce.korb@gmail.com> wrote:
> Hi,
>
> This command:
>
> gcc -Wno-format-contains-nul -Wall -Werror
I think -Wall should over ride what comes before it. This is
different from -O though.
Thanks,
Andrew Pinski
>
> 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