[Bug c++/64767] Could GCC warn when a pointer is compared against '\0'?

ulfalizer at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 24 15:40:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64767

--- Comment #3 from Ulf Magnusson <ulfalizer at gmail dot com> ---
clang also generates a warning for C programs with void *a = '\0' by the way,
so it seems to be able to look at the form of the integral constant there.



More information about the Gcc-bugs mailing list