From 9832fcb598482554d0b738bd6915e2f8a2277317 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 21 Jul 2009 18:51:31 +0000 Subject: [PATCH] Prep for new warning. llvm-svn: 76610 --- clang/test/Analysis/null-deref-ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/test/Analysis/null-deref-ps.c b/clang/test/Analysis/null-deref-ps.c index eb3812cf12d5..a31bcecf9710 100644 --- a/clang/test/Analysis/null-deref-ps.c +++ b/clang/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 -- 2.34.1