https://llvm.org/bugs/show_bug.cgi?id=25766
Bug ID: 25766 Summary: Macro inhibits -Wtautological-compare warning Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangb...@nondot.org Reporter: steve...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified With this code: #define MY_ASSERT(_expr_) \ { (void)((_expr_)); } int main() { unsigned int foo = 0; MY_ASSERT(foo >= 0); { (void)((foo >= 0)); } } the line with the macro does not emit a warning. The expanded version of the macro content does issue a warning. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs