[LLVMbugs] [Bug 10837] Warn when assigning null character to pointer
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 5 14:37:21 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=10837
rtrieu at google.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dblaikie at gmail.com,
| |rtrieu at google.com
Resolution| |FIXED
--- Comment #3 from rtrieu at google.com 2012-10-05 16:37:21 CDT ---
David Blaike has added -Wnon-literal-null-conversion in r161501 which catches
null pointer assignments of this form.
warning: expression which evaluates to zero treated
as a null pointer constant of type 'char *'
[-Wnon-literal-null-conversion]
p = '\0';
^~~~
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list