This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47257] New: Redundant redeclaration warning with -combine -Wredundant-decls flags


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]