Opened 9 years ago

Closed 8 years ago

#9377 closed Bugs (fixed)

g++ 4.7 -Wshadow warnings need attention

Reported by: Tom Browder <tom.browder@…> Owned by: Daniel James
Milestone: To Be Determined Component: unordered
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

Following are warnings from g++ 4.7

boost/unordered/detail/equivalent.hpp:539:25: warning: declaration of 'count' shadows a member of 'this' [-Wshadow]

boost/unordered/detail/table.hpp:261:9: warning: declaration of 'hash' shadows a member of 'this' [-Wshadow]

boost/unordered/detail/table.hpp:658:39: warning: declaration of 'assign' shadows a member of 'this' [-Wshadow]

boost/unordered/detail/table.hpp:733:48: warning: declaration of 'assign' shadows a member of 'this' [-Wshadow]

boost/unordered/detail/unique.hpp:532:25: warning: declaration of 'count' shadows a member of 'this' [-Wshadow]

Change History (3)

comment:1 by Mateusz Loskot, 9 years ago

From #9374

This is a standard C++ idiom and does not make sense to change.

comment:2 by Daniel James, 9 years ago

Status: newassigned

I am going to deal with this. Fixing non-problems reported by warnings is a bit annoying, but so are the warnings themselves. This isn't a priority though, I've got a lot of other things to be doing at the moment.

comment:3 by Daniel James, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.