From: Chandler Carruth Date: Sun, 19 Jun 2011 09:05:19 +0000 (+0000) Subject: Turn -Wnull-arithmetic back on by default -- we now have tests for the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=732271ee3f97249c1b73088b402665ce4332256e;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133384 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index f28dd1e49a..ebcf8238c6 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2999,7 +2999,7 @@ def warn_comparison_of_mixed_enum_types : Warning< InGroup>; def warn_null_in_arithmetic_operation : Warning< "use of NULL in arithmetic operation">, - InGroup>, DefaultIgnore; + InGroup>; def err_invalid_this_use : Error< "invalid use of 'this' outside of a nonstatic member function">;