Opened 12 years ago
Closed 12 years ago
#4918 closed Patches (fixed)
concept_check.hpp triggers self-assignment warnings
Reported by: | Owned by: | Marshall Clow | |
---|---|---|---|
Milestone: | To Be Determined | Component: | concept_check |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
boost/concept_check.hpp contains two instances of assigning a variable to itself. In context, this is perfectly safe (since the code should never actually be executed), but it nonetheless triggers gcc's -Wself-assign, cluttering the build output for those who have that flag set, and breaking the build for those who also set -Werror. So far as I can tell, this code can be trivially rewritten to avoid the warning without any correctness or performance impact (see the attached patch).
Attachments (1)
Change History (5)
by , 12 years ago
Attachment: | selfassign.patch added |
---|
comment:1 by , 12 years ago
Type: | Bugs → Patches |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
Patch to fix bug