]> granicus.if.org Git - clang/commitdiff
Prep for new warnings about control flow falling off the ends of
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 18:44:24 +0000 (18:44 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 18:44:24 +0000 (18:44 +0000)
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

test/Analysis/complex.c

index 6f850695cecebae61e09cda801a025f4a7856cd9..e1e60bbe2f7c24396189032b233bba770a108a2f 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <stdint.h>
 
-int f1(int * p) {
+void f1(int * p) {
   
   // This branch should be infeasible
   // because __imag__ p is 0.