Modify

Opened 4 years ago

Closed 3 years ago

#9377 closed Bugs (fixed)

g++ 4.7 -Wshadow warnings need attention

Reported by: Tom Browder <tom.browder@…> Owned by: danieljames
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]

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by mloskot

From #9374

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

comment:2 Changed 4 years ago by danieljames

  • Status changed from new to assigned

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 3 years ago by danieljames

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain danieljames.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.