[Bug c++/80729] [GCC 6, 7] -Wuseless-cast doesn't detect casting string literals to (const char*)
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 12 23:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80729
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |msebor at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Not warning is correct because the type of a string literal is array of const
char while the type it's being cast to is const char*.
More information about the Gcc-bugs
mailing list