[Boost-bugs] [Boost C++ Libraries] #4918: concept_check.hpp triggers self-assignment warnings

Subject: [Boost-bugs] [Boost C++ Libraries] #4918: concept_check.hpp triggers self-assignment warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-01 20:08:02


#4918: concept_check.hpp triggers self-assignment warnings
-------------------------------+--------------------------------------------
 Reporter: gromer@… | Owner: jsiek
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: concept_check
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 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).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4918>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC