[Bug c/61579] -Wwrite-strings does not behave as a warning option
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 21 15:45:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61579
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu.org,
| |manu at gcc dot gnu.org
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Agreed. It seems that in order to get the desired warning, the solution was to
change the type and warn implicitly, rather than detect the potential cases
explicitly. This is a quite ugly hack.
On the other hand, I don't expect an existing GCC developer to fix this, given
the long history of -Wwrite-strings. Someone new will have to step up,
implement it and defend it in front of the C FE maintainers.
More information about the Gcc-bugs
mailing list