This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37190] -Wredundant-decls -Wno-error=redundant-decls not working as expected
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2008 16:01:10 -0000
- Subject: [Bug c/37190] -Wredundant-decls -Wno-error=redundant-decls not working as expected
- References: <bug-37190-15165@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from manu at gcc dot gnu dot org 2008-08-21 16:01 -------
This is fixed in GCC 4.4
~/139373M/build/gcc/cc1 -Werror -Wredundant-decls -Wno-error=redundant-decls
test.c
test.c:2: warning: redundant redeclaration of ?optarg?
test.c:1: note: previous declaration of ?optarg? was here
Since this is not a regression, there are no plans to backport the fix (which
is not trivial anyway).
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37190