This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47257] New: Redundant redeclaration warning with -combine -Wredundant-decls flags
- From: "patchesThomas.Vie at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jan 2011 09:32:54 +0000
- Subject: [Bug c/47257] New: Redundant redeclaration warning with -combine -Wredundant-decls flags
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47257
Summary: Redundant redeclaration warning with -combine
-Wredundant-decls flags
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: patchesThomas.Vie@web.de
Created attachment 22943
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22943
Testcase to reproduce the bug.
When using the CFLAGS -combine and -Wredundant-decls there are superfluous
warnings which should be suppressed:
gcc -Wredundant-decls -combine hello.c main.c -o combinetest
In file included from main.c:2:0:
hello.h:4:6: warning: redundant redeclaration of 'print_hello'
hello.c:3:6: note: previous definition of 'print_hello' was here