From: Mike Stump Date: Tue, 21 Jul 2009 22:54:02 +0000 (+0000) Subject: Prep for new warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74bfeb39e7150d184c12d6dc2771a8b48b7d6af6;p=clang Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76670 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/ext_vector.c b/test/PCH/ext_vector.c index 4b5c25980e..ab5d2224ba 100644 --- a/test/PCH/ext_vector.c +++ b/test/PCH/ext_vector.c @@ -7,4 +7,5 @@ int test(float4 f4) { return f4.xy; // expected-error{{float2}} + return 1; } diff --git a/test/PCH/functions.c b/test/PCH/functions.c index 6d3c5a0f7b..29b873f563 100644 --- a/test/PCH/functions.c +++ b/test/PCH/functions.c @@ -12,6 +12,7 @@ float *test_f1(int val, double x, double y) { return f1(x, y); else return f1(x); // expected-error{{too few arguments to function call}} + return 0; } void test_g0(int *x, float * y) { diff --git a/test/PCH/method_pool.h b/test/PCH/method_pool.h index f7af9044d9..80858360d7 100644 --- a/test/PCH/method_pool.h +++ b/test/PCH/method_pool.h @@ -22,8 +22,7 @@ @end @implementation TestMethodPool1 -+ alloc { -} ++ alloc { return 0; } - (double)instMethod:(int)foo { return foo;