http://llvm.org/bugs/show_bug.cgi?id=18796
Bug ID: 18796
Summary: No -Wtautological warning for comparison (unsigned <
0L)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Clang does not warn the following case. However, if I change "0L" to "0", clang
warns.
$: cat s.c
int fn(unsigned a) {
return a < 0L;
}
$: clang-trunk -Wtautological-compare -c s.c
$: clang-trunk --version
clang version 3.5 (trunk 200859)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$:
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs