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

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 18 23:32:00 GMT 2014


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

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Chengnian Sun from comment #4)
> I realize that the options "-Wall -Wextra" do not enable all the warnings.
> Is there a flag in GCC which enables all the available warning types,
> similar to -Weverything in Clang? 

No. People regularly ask for it (I even have a (probably bad) patch in PR
53313), but there is some reluctance among gcc developers who tend to believe
that if this option includes absolutely every warning, people will complain
that it includes useless self-contradictory stuff (they will refuse to read the
doc that says -Weverything isn't for real use, only to help you discover new
-Wsomething), and if it doesn't, it is useless.



More information about the Gcc-bugs mailing list