summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-19 23:03:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-19 23:03:35 +0000
commit40cec8326cf4d46a9c5ad14c1150a0fd75531dce (patch)
treeb48c3c5b5b7c0bd9b2391eab428e0a67cb4f27cc /clang/test/Analysis
parentb912c27fc96cc861dca23d63c89b9ed536bdc945 (diff)
downloadbcm5719-llvm-40cec8326cf4d46a9c5ad14c1150a0fd75531dce.tar.gz
bcm5719-llvm-40cec8326cf4d46a9c5ad14c1150a0fd75531dce.zip
Revert r114316, -Wunused-value enabled by default was intended.
llvm-svn: 114318
Diffstat (limited to 'clang/test/Analysis')
-rw-r--r--clang/test/Analysis/dead-stores.c4
-rw-r--r--clang/test/Analysis/misc-ps.m4
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Analysis/dead-stores.c b/clang/test/Analysis/dead-stores.c
index ad7890b6b18..c150fa088d8 100644
--- a/clang/test/Analysis/dead-stores.c
+++ b/clang/test/Analysis/dead-stores.c
@@ -300,11 +300,11 @@ void f22() {
case 7:
(void)(0 && x);
(void)y7;
- (void)(0 || (y8, ({ return; }), 1));
+ (void)(0 || (y8, ({ return; }), 1)); // expected-warning {{expression result unused}}
(void)x;
break;
case 8:
- (void)(1 && (y9, ({ return; }), 1));
+ (void)(1 && (y9, ({ return; }), 1)); // expected-warning {{expression result unused}}
(void)x;
break;
case 9:
diff --git a/clang/test/Analysis/misc-ps.m b/clang/test/Analysis/misc-ps.m
index 190c605b5c7..bb70c90e6a6 100644
--- a/clang/test/Analysis/misc-ps.m
+++ b/clang/test/Analysis/misc-ps.m
@@ -466,7 +466,7 @@ unsigned char test_array_index_bitwidth(const unsigned char *p) {
// It should not crash.
void test_block_cast() {
id test_block_cast_aux();
- (void (^)(void *))test_block_cast_aux();
+ (void (^)(void *))test_block_cast_aux(); // expected-warning{{expression result unused}}
}
int OSAtomicCompareAndSwap32Barrier();
@@ -673,7 +673,7 @@ CGFloat rdar7242006(CGFloat x) {
// when not explicitly used in an "lvalue" context (as far as the analyzer is
// concerned). This previously triggered a crash due to an invalid assertion.
void pr_4988(void) {
- pr_4988;
+ pr_4988; // expected-warning{{expression result unused}}
}
// <rdar://problem/7152418> - A 'signed char' is used as a flag, which is
OpenPOWER on IntegriCloud