[Bug c/59870] Gcc should warn conversion from "const char*" to "char*" for string literals
chengniansun at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 18 23:21:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59870
--- Comment #4 from Chengnian Sun <chengniansun at gmail dot com> ---
Thanks for your clarification, Harald, Jakub and Andrew.
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?
I think people are usually aware of the two flags for warnings (i.e., "-Wall
-Wextra"), especially for beginner programmers. Maybe it is worth a try to add
such a flag?
Thanks.
More information about the Gcc-bugs
mailing list