summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/null-deref-ps.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-09-02 22:18:59 +0000
committerJohn McCall <rjmccall@apple.com>2010-09-02 22:18:59 +0000
commit25f7aa81589e7e78cf38065e66257c45a0851283 (patch)
treecbf7f05c0e862f17686a7856f189fa61951f6cf1 /clang/test/Analysis/null-deref-ps.c
parent2912df072d891383c7c007f8fcff9ad8a2520440 (diff)
downloadbcm5719-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/Analysis/null-deref-ps.c')
-rw-r--r--clang/test/Analysis/null-deref-ps.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud