This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] Add -Wformat-zero-length for zero-length format warning
On Sat, May 18, 2002 at 07:43:56PM +0100, Joseph S. Myers wrote:
> > +@opindex Wformat-zero-length
>
> I think indexing the -Wno-format-zero-length option people will actually
> use is more useful than indexing -Wformat-zero-length.
Oops, I had simply missed this. Fixed.
> > +/* Test for printf formats. Formats using C90 features, including cases
> > + where C90 specifies some aspect of the format to be ignored or where
> > + the behaviour is undefined.
> > +*/
>
> This comment taken from some other testcase isn't an accurate description
> of what this testcase (a test of -Wno-format-zero-length, not of checking
> of printf format features in general) is about.
Hm, okay ... makes sense. I've changed it to:
/* Test the -Wno-format-zero-length option, which suppresses warnings
about zero-length formats. */
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>