Bug 32160
Summary: | g++ produces bogus warnings when -Wshadow is given | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Wagner T. Correa <wtcorrea> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | wtcorrea |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-03-19 14:57:14 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Wagner T. Correa
2001-03-18 22:30:23 UTC
I've changed bastring.cc so that you don't get this warning for it. Concerning behaviour of -Wshadow, the documentation is just incomplete, gcc has been warning about shadowing many things for very long time and this behaviour has not changed. E.g. it warns if a static function shadows a builtin, local variable shadows a parameter etc. These two changes are in gcc 2.96-80. |