]> granicus.if.org Git - clang/commitdiff
[analyzer] The compiler warning was disabling the analyzer in this test.
authorAnna Zaks <ganna@apple.com>
Fri, 18 Nov 2011 00:45:20 +0000 (00:45 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 18 Nov 2011 00:45:20 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144946 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/null-deref-ps.c

index 641dde2075582947e490ceaf222745fc0a46c121..5da969917618a19cd5cc053a33fb1147c7445421 100644 (file)
@@ -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;