aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-11-18 00:45:20 +0000
committerAnna Zaks <ganna@apple.com>2011-11-18 00:45:20 +0000
commit01f2a1ea4d2b124d83eca82e01a0a7482c2c3614 (patch)
tree7b2ca5bed982047336c6920661cb8eeae48bf1a9
parent5a4d35247f55dae6dd0d5ad349ecadbbea0b4572 (diff)
[analyzer] The compiler warning was disabling the analyzer in this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144946 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/null-deref-ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c
index 641dde2075..5da9699176 100644
--- a/test/Analysis/null-deref-ps.c
+++ b/test/Analysis/null-deref-ps.c
@@ -221,7 +221,7 @@ int* f10(int* p, signed char x, int y) {
// This tests that our symbolication worked, and that we correctly test
// x against 0 (with the same bitwidth).
if (!x) {
- if (!p) return; // expected-warning {{non-void function 'f10' should return a value}}
+ if (!p) return 0;
*p = 10;
}
else p = 0;