[cfe-commits] r133384 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Chandler Carruth chandlerc at gmail.com
Sun Jun 19 02:05:19 PDT 2011

Author: chandlerc
Date: Sun Jun 19 04:05:19 2011
New Revision: 133384

URL: http://llvm.org/viewvc/llvm-project?rev=133384&view=rev
Turn -Wnull-arithmetic back on by default -- we now have tests for the
false positives, including those in the GCC test suite, and don't warn
about them.

Let me know if this causes fallout, we can turn it back off if needed.


Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=133384&r1=133383&r2=133384&view=diff
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Sun Jun 19 04:05:19 2011
@@ -2999,7 +2999,7 @@
 def warn_null_in_arithmetic_operation : Warning<
   "use of NULL in arithmetic operation">,
-  InGroup<DiagGroup<"null-arithmetic">>, DefaultIgnore;
+  InGroup<DiagGroup<"null-arithmetic">>;
 def err_invalid_this_use : Error<
   "invalid use of 'this' outside of a nonstatic member function">;

More information about the cfe-commits mailing list