diff options
author | Richard Trieu <rtrieu@google.com> | 2011-06-17 20:35:48 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-06-17 20:35:48 +0000 |
commit | fc51bc1ceac8f3cc403df632dd5a75755cf1ff28 (patch) | |
tree | 7c2448d40ae836d35bcd53cbd8d2229d4b07242f /clang/test | |
parent | e303114b3cc50bad5fd7bbbe2aa883da2219a093 (diff) | |
download | bcm5719-llvm-fc51bc1ceac8f3cc403df632dd5a75755cf1ff28.tar.gz bcm5719-llvm-fc51bc1ceac8f3cc403df632dd5a75755cf1ff28.zip |
Put the new warning from revision 133196 on NULL arithmetic behind the flag -Wnull-arthimetic and set to DefaultIgnore. A few edge cases need to be worked out before this can be set to default.
llvm-svn: 133287
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaCXX/null_in_arithmetic_ops.cpp | 2 | ||||
-rw-r--r-- | clang/test/SemaObjCXX/null_objc_pointer.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/null_in_arithmetic_ops.cpp b/clang/test/SemaCXX/null_in_arithmetic_ops.cpp index 547c936c3e5..b0303177c25 100644 --- a/clang/test/SemaCXX/null_in_arithmetic_ops.cpp +++ b/clang/test/SemaCXX/null_in_arithmetic_ops.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s +// RUN: %clang_cc1 -fsyntax-only -fblocks -Wnull-arithmetic -verify %s #include <stddef.h> void f() { diff --git a/clang/test/SemaObjCXX/null_objc_pointer.mm b/clang/test/SemaObjCXX/null_objc_pointer.mm index 1dadabef299..0da9e50f5a1 100644 --- a/clang/test/SemaObjCXX/null_objc_pointer.mm +++ b/clang/test/SemaObjCXX/null_objc_pointer.mm @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wnull-arithmetic %s #define NULL __null @interface X |