This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18799] error: static declaration of 'x' follows non-static declaration
- From: "markus at oberhumer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2004 23:12:44 -0000
- Subject: [Bug c/18799] error: static declaration of 'x' follows non-static declaration
- References: <20041202212109.18799.markus@oberhumer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From markus at oberhumer dot com 2004-12-02 23:12 -------
I'm reopening this against gcc-3.4.3 then, as the warning has vanished - a
possible regression against 3.2 and 3.3.
Note that gcc-3.4.3/gcc/c-decl.c talks about -Wtraditional, but even that
doesn't make the warning appear.
Please feel free to close this bug again if you disagree.
> gcc-3.3 -c -Wall -W -Wtraditional -pedantic x.c
x.c:2: warning: static declaration for `x' follows non-static
x.c: In function `foo':
x.c:3: warning: traditional C rejects ISO C style function definitions
> gcc-3.4.3 -c -Wall -W -Wtraditional -pedantic x.c
x.c: In function `foo':
x.c:3: warning: traditional C rejects ISO C style function definitions
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
Version|4.0.0 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18799