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: unassig...@gcc.gnu.org
        ReportedBy: patchesthomas....@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

Reply via email to