From: Mike Stump Date: Tue, 21 Jul 2009 18:44:24 +0000 (+0000) Subject: Prep for new warnings about control flow falling off the ends of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd28a619da3dda5f9b897abbb469cf699098e965;p=clang Prep for new warnings about control flow falling off the ends of functions that return a value. I was going to buffer the whole lot up, but it should be easier to review if I check them in incrementally. Most of the forth coming changes either add a return value, or make it impossible to return, or alter the return type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76605 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/complex.c b/test/Analysis/complex.c index 6f850695ce..e1e60bbe2f 100644 --- a/test/Analysis/complex.c +++ b/test/Analysis/complex.c @@ -7,7 +7,7 @@ #include -int f1(int * p) { +void f1(int * p) { // This branch should be infeasible // because __imag__ p is 0.