config patch to turn off -Wformat for systems that include it in -Wall

Joseph S. Myers joseph@codesourcery.com
Fri Mar 26 14:14:00 GMT 2010


On Fri, 26 Mar 2010, Paolo Bonzini wrote:

> On 03/25/2010 07:55 PM, Mike Stump wrote:
> > This patch tuns off -Wformat for systems that include it in -Wall.
> > Apple's gcc would be one such system.  On other systems, this
> > shouldn't have any effect.  I originally wanted to put this into
> > config/mh-darwin, but those flags come before -Wall on the command
> > line and hence can't effect it.
> > 
> > Ok?
> 
> Ok for 4.5.

No, the patch is definitely wrong.  We wouldn't have the support for 
checking GCC-specific formats if we didn't want -Wformat enabled when 
building GCC.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list