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

Joseph S. Myers joseph@codesourcery.com
Thu Aug 9 20:43:00 GMT 2012


On Thu, 9 Aug 2012, Bruce Korb wrote:

> 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

Indeed.  My model for how options should interact in such cases is 
appendix 1 of <http://gcc.gnu.org/ml/gcc/2010-01/msg00063.html>.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc mailing list