This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]