From: Mike Stump Date: Tue, 21 Jul 2009 18:51:31 +0000 (+0000) Subject: Prep for new warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=339d52a8ddcb345275ec48c7bab849a8943fa9f5;p=clang Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76610 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c index eb3812cf12..a31bcecf97 100644 --- a/test/Analysis/null-deref-ps.c +++ b/test/Analysis/null-deref-ps.c @@ -74,6 +74,7 @@ int f4_b() { else return; // expected-warning {{non-void function 'f4_b' should return a value}} *p += 10; // expected-warning{{Dereference of null pointer}} + return 0; } @@ -162,7 +163,7 @@ int* f7c2(int *x) { } -int f8(int *p, int *q) { +void f8(int *p, int *q) { if (!p) if (p) *p = 1; // no-warning