[Bug c/59870] Gcc should warn conversion from "const char*" to "char*" for string literals

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 18 07:30:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59870

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Gcc should warn conversion  |Gcc should warn conversion
                   |from "const char*" to       |from "const char*" to
                   |"char*"                     |"char*" for string literals

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-Wcast-qual should have done this and does for non string literals.



More information about the Gcc-bugs mailing list