From: Anna Zaks Date: Fri, 18 Nov 2011 00:45:20 +0000 (+0000) Subject: [analyzer] The compiler warning was disabling the analyzer in this test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01f2a1ea4d2b124d83eca82e01a0a7482c2c3614;p=clang [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 --- 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;