diff options
author | John McCall <rjmccall@apple.com> | 2010-09-02 22:18:59 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-02 22:18:59 +0000 |
commit | 25f7aa81589e7e78cf38065e66257c45a0851283 (patch) | |
tree | cbf7f05c0e862f17686a7856f189fa61951f6cf1 /clang/test | |
parent | 2912df072d891383c7c007f8fcff9ad8a2520440 (diff) | |
download | bcm5719-llvm-25f7aa81589e7e78cf38065e66257c45a0851283.tar.gz bcm5719-llvm-25f7aa81589e7e78cf38065e66257c45a0851283.zip |
Experimentally move the tautological comparison warnings from -Wsign-compare
to -Wtautological-compare. This implies that they're now on by default.
If this causes chaos, I'll figure something else out.
llvm-svn: 112877
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Analysis/additive-folding.c | 4 | ||||
-rw-r--r-- | clang/test/Analysis/null-deref-ps.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/additive-folding.c b/clang/test/Analysis/additive-folding.c index e4a56513396..713f788ac0d 100644 --- a/clang/test/Analysis/additive-folding.c +++ b/clang/test/Analysis/additive-folding.c @@ -183,14 +183,14 @@ void tautologyGT (unsigned a) { void tautologyGE (unsigned a) { char* b = malloc(1); - if (a >= 0) + if (a >= 0) // expected-warning{{always true}} free(b); return; // no-warning } void tautologyLT (unsigned a) { char* b = malloc(1); - if (a < 0) + if (a < 0) // expected-warning{{always false}} return; // expected-warning{{never executed}} free(b); } diff --git a/clang/test/Analysis/null-deref-ps.c b/clang/test/Analysis/null-deref-ps.c index 8daa8450681..d4d18b4ff3b 100644 --- a/clang/test/Analysis/null-deref-ps.c +++ b/clang/test/Analysis/null-deref-ps.c @@ -237,7 +237,7 @@ int* f10(int* p, signed char x, int y) { // Test case from <rdar://problem/6407949> void f11(unsigned i) { int *x = 0; - if (i >= 0) { + if (i >= 0) { // expected-warning{{always true}} // always true } else { *x = 42; // no-warning |