This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17189] New: bogus warning for struct Foo { int; };
- From: "terra at gnome dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2004 18:30:17 -0000
- Subject: [Bug c/17189] New: bogus warning for struct Foo { int; };
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The first given warning here is bogus. It true, but does not apply to the
program being compiled.
struct Foo { int; };
> gcc-3.4 -std=c99 -pedantic -Wall ~/foo.c
/home/welinder/foo.c:1: warning: ISO C doesn't support unnamed structs/unions
/home/welinder/foo.c:1: warning: declaration does not declare anything
/home/welinder/foo.c:1: warning: struct has no members
--
Summary: bogus warning for struct Foo { int; };
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: terra at gnome dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17189