This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/59870] Gcc should warn conversion from "const char*" to "char*" for string literals
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Jan 2014 23:21:46 +0000
- Subject: [Bug c/59870] Gcc should warn conversion from "const char*" to "char*" for string literals
- Auto-submitted: auto-generated
- References: <bug-59870-4 at http dot gcc dot gnu dot org/bugzilla/>
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.