[patch] C++ FE warning control cleanup

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Jan 31 20:50:00 GMT 2006


Andrew Pinski <pinskia@physics.uc.edu> writes:

| > Index: typeck.c
| > ===================================================================
| > --- typeck.c	(revision 110412)
| > +++ typeck.c	(working copy)
| > @@ -1500,7 +1500,7 @@ string_conv_p (tree totype, tree exp, in
| >  
| >    /* This warning is not very useful, as it complains about printf.  */
| >    if (warn && warn_write_strings)
| > -    warning (0, "deprecated conversion from string constant to %qT'", totype);
| > +    warning (OPT_Wwrite_strings, "deprecated conversion from string constant to %qT'", totype);
| 
| You can remove warn_write_strings from the if statement now.

I saw them, but I think they can wait for another patch.  
Incremental improvements!

-- Gaby



More information about the Gcc-patches mailing list