[cfe-commits] [Patch] Remove false positives from warnings on NULL in arithmetic expressions.

Richard Trieu rtrieu at google.com
Fri Jun 17 19:38:09 PDT 2011


-Wnull-arithmetic was catching some false positives.  Switch the checking
code so that it will warn on specific types instead of not warning on
specific types.  Now, comparisons between non-boolean arithmetic types and
NULL will give this warning.  New types to warn on can be added later if
needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110617/2d8253ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: null_arithmetic4.patch
Type: text/x-patch
Size: 3658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110617/2d8253ff/attachment.bin>


More information about the cfe-commits mailing list