After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 117740 - compiling with -Wshadow produces warnings
compiling with -Wshadow produces warnings
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.2
Other Windows
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-07-18 02:12 UTC by btb
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
-Wshadow warnings (3.23 KB, text/plain)
2003-07-18 02:13 UTC, btb
Details

Description btb 2003-07-18 02:12:03 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]
Comment 1 btb 2003-07-18 02:13:56 UTC
Created attachment 18401 [details]
-Wshadow warnings
Comment 2 Murray Cumming 2003-07-18 12:28:45 UTC
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.
Comment 3 Murray Cumming 2003-09-16 12:48:04 UTC
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.
Comment 4 Murray Cumming 2003-09-30 13:53:40 UTC
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.
Comment 5 Murray Cumming 2003-11-19 15:12:30 UTC
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.
Comment 6 Bugzilla Maintainers 2004-04-01 23:44:57 UTC
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