This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]