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 formatwarning
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 18 May 2002 18:14:31 +0100 (BST)
- Subject: Re: [PATCH/RFA] Add -Wformat-zero-length for zero-length formatwarning
On Sat, 18 May 2002, Jason R Thorpe wrote:
> Er, are you saying that the zero-length warning should still be anabled
> for the base -Wformat, or only for -Wformat=2? I'm willing to change the
The base -Wformat. (That will also minimise the testsuite changes, since
existing testcases shouldn't then need to change, there will just need to
be a testcase that -Wno-format-zero-length does disable the warning.)
None of this should be conditional on particular format types; an empty
string seems OK by the standard for all of them.
--
Joseph S. Myers
jsm28@cam.ac.uk