diff options
author | John McCall <rjmccall@apple.com> | 2010-09-08 02:01:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-08 02:01:27 +0000 |
commit | 83556c1a809650e0e9225996fbf670477f075f5f (patch) | |
tree | 90dfae3bb29381f9ff8deaae01e3b7328a1bc15e /clang/test/Analysis/null-deref-ps.c | |
parent | 261df12f648889edaa15482a003b6a61e3561576 (diff) | |
download | bcm5719-llvm-83556c1a809650e0e9225996fbf670477f075f5f.tar.gz bcm5719-llvm-83556c1a809650e0e9225996fbf670477f075f5f.zip |
Put the tautological-comparison-of-unsigned-against-zero warnings in
-Wtautological-compare instead of -Wsign-compare, which also implies turning
them on by default.
Restoration of r112877.
llvm-svn: 113334
Diffstat (limited to 'clang/test/Analysis/null-deref-ps.c')
-rw-r--r-- | clang/test/Analysis/null-deref-ps.c | 2 |
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 |