This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/7101] attribute unused not honored on static variable preceeded by extern declaration
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2003 05:55:36 -0000
- Subject: [Bug c/7101] attribute unused not honored on static variable preceeded by extern declaration
- References: <20020621135601.7101.ghazi@caip.rutgers.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-28 05:55 -------
With -pedantic or -pedantic-errors, I do get warnings:
pr7101.c:7: warning: static declaration for `i1' follows non-static
pr7101.c:8: warning: static declaration for `i2' follows non-static
pr7101.c:9: warning: static declaration for `i3' follows non-static
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-05 07:30:12 |2003-12-28 05:55:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7101