http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45399
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-06-15 18:40:40 UTC --- (In reply to comment #8) > No objection I think. Alternatively there could be a switch to control this > warning. Or both. I wish clang published a list of their warning options, so we can keep compatibility. According to this: https://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?revision=39294&view=markup&sortby=rev&pathrev=63060 They have three different warnings for this but I am not sure if the options are called -Wnull-in-char, -Wnull-in-string, and -Wnull-in-file.