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]

c++/713: request for better -Wshadow message



>Number:         713
>Category:       c++
>Synopsis:       request for better -Wshadow message
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 30 14:26:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        unknown-1.0
>Organization:
>Environment:
current cvs gcc
RH x86 Linux 6.2
>Description:
When compiling libgcj with -Wshadow I get this warning
repeatedly:

../../../libgcj/libjava/interpret.cc:670: warning: declaration of `index' 
   shadows global declaration

I don't know where `index' is declared globally.
I'm guessing it is a C string function that somehow
gets declared.

First, I don't really want this warning.  I don't care
if I shadow a function name.

Second, and more importantly, it would be nice if
-Wshadow printed the location of the conflicting
declaration.  Otherwise I have to use "gcc -E" and dig
backwards from there to find it, which is a pain.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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