GNOME Bugzilla – Bug 117740
compiling with -Wshadow produces warnings
Last modified: 2004-12-22 21:47:04 UTC
When compiling a file containing only #include <gtkmm.h>, gcc produces a lot of warnings about shadowed variables. [this is a forward of debian bug#201815]
Created attachment 18401 [details] -Wshadow warnings
I can't actually find any of those members. I would be very surprised if the TreeView class had a path member, for instance. Our class member variables should all have an underscore at the end. A patch would be welcome.
Although I can't make sense of most of this, maybe the "property_name" one can be fixed, though I think it's a method name rather than a member variable. Maybe these are all member _methods_. If so, I don't see the purpose of the warning.
The property_name one should be fixed - it now uses "the_property_name" for the parameter name. As for the rest, I don't have a clue, but feel free to submit a patch.
Closing until someone can show me that this is not a compiler bug. I can see no cause for these warnings in the gtkmm code.
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions. URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=201815