public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17189] New: bogus warning for  struct Foo { int; };
@ 2004-08-25 18:30 terra at gnome dot org
  2004-08-25 18:40 ` [Bug c/17189] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: terra at gnome dot org @ 2004-08-25 18:30 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-10  0:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25 18:30 [Bug c/17189] New: bogus warning for struct Foo { int; }; terra at gnome dot org
2004-08-25 18:40 ` [Bug c/17189] " pinskia at gcc dot gnu dot org
2004-10-10  0:47 ` cvs-commit at gcc dot gnu dot org
2004-10-10  0:51 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).