This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] C++ FE warning control cleanup
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: lee dot millward at gmail dot com (Lee Millward), gcc-patches at gcc dot gnu dot org
- Date: 31 Jan 2006 21:52:25 +0100
- Subject: Re: [patch] C++ FE warning control cleanup
- References: <200601312008.k0VK86Ca005234@earth.phy.uc.edu>
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