RFC: Desupport -fwritable-strings

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Tue Apr 22 18:13:00 GMT 2003


On Mon, 21 Apr 2003, Zack Weinberg wrote:
> Here's a draft of expanded text for gcc-3.4/changes.html:

That's nice, thanks!

>       When trying to fix complicated code that depends on writable
>       strings, you may find the <code>-Wwrite-strings</code> option
>       useful; this changes the type of a string constant to
>       <code>const char *</code>, which in turn makes the compiler
>       diagnose any attempt to write into them.  Be warned that this
                                           ^^^^
"it"?

Gerald
-- 
Gerald "Jerry"   pfeifer@dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/



More information about the Gcc-patches mailing list