Opened 5 years ago

Closed 4 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 Changed 5 years ago by Mateusz Loskot

From #9374

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

comment:2 Changed 5 years ago by Daniel James

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 Changed 4 years ago by Daniel James

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