Re: mixing warning flags

2005-05-12 Thread DJ Delorie
> To reflect the logical intent of these options while passing a > unique OPT_* to each warning call, you'd need to add an option > -Wformat-security-nonliteral for the warnings in the intersection of > the two options; At one point I proposed a system that let you say "this option infers these o

Re: mixing warning flags

2005-05-12 Thread Daniel Jacobowitz
On Thu, May 12, 2005 at 03:46:41PM -0400, DJ Delorie wrote: > > How to convert this code? There is no single OPT_* that reflects when > the first warning is emitted. > > if (params == 0 && (warn_format_nonliteral || warn_format_security)) > warning (0, "format not a string lite

Re: mixing warning flags

2005-05-12 Thread Joseph S. Myers
On Thu, 12 May 2005, DJ Delorie wrote: > if (params == 0 && warn_format_security) > warning (OPT_Wformat_security, >"format not a string literal and no format arguments"); > els if (params == 0 && warn_format_nonliteral) > warning (OPT_Wforma

mixing warning flags

2005-05-12 Thread DJ Delorie
How to convert this code? There is no single OPT_* that reflects when the first warning is emitted. if (params == 0 && (warn_format_nonliteral || warn_format_security)) warning (0, "format not a string literal and no format arguments"); else warning (O