http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52961
Bug #: 52961
Summary: Missing warning on empty if
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
int test(int i) {
if (i > 42);
return 42;
return i;
}
/*
emptyif.cpp:2:14: warning: if statement has empty body [-Wempty-body]
if (i > 42);
^
1 warning generated.
*/
