From 3f3957ce04c78d0cedba3c2cea8383a4311c2f36 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 19 Jun 2011 09:05:19 +0000 Subject: [PATCH] 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. llvm-svn: 133384 --- clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index f28dd1e49a82..ebcf8238c616 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/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">;