This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23161] New: Labels and empty statement warnings
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2005 13:25:45 -0000
- Subject: [Bug c/23161] New: Labels and empty statement warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
void foo (void)
{
if (0)
a: ;
}
Compile with -W, there is no warning about the empty statement. Remove the
label and there is. IMO the warning should be independent of whether the
statement is labelled.
--
Summary: Labels and empty statement warnings
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161