This is the mail archive of the
mailing list for the GCC project.
Re: [patch] generated string libraries & -Wformat
On Sun, 25 Mar 2007, Mark Mitchell wrote:
> Joseph S. Myers wrote:
> > On Sat, 24 Mar 2007, Bruce Korb wrote:
> >> This bootstraps in Linux i686 & I can use -Wno-format-contains-nul to
> >> suppress that warning. OK?
> > This is not a complete patch submission, I await one with documentation
> > and testcases (both for the option disabling the diagnostic and for the
> > use of -Wformat-contains-nul being diagnosed just as other such "ignored
> > without" diagnostics are tested in gcc.dg/format/opt-*.c).
> But, you do think the option is useful overall, then, and that Bruce
> should proceed with the additional steps you mention? I have no
> opinion, but it might help Bruce to know for sure whether he's heading
> in a direction you're likely to approve.
Yes, I think it makes sense in principle (and the existing patch is
probably a reasonable start on the implementation).
Joseph S. Myers