Boost C++ Libraries: Ticket #4918: concept_check.hpp triggers self-assignment warnings https://svn.boost.org/trac10/ticket/4918 <p> 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). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4918 Trac 1.4.3 gromer@… Wed, 01 Dec 2010 20:08:37 GMT attachment set https://svn.boost.org/trac10/ticket/4918 https://svn.boost.org/trac10/ticket/4918 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">selfassign.patch</span> </li> </ul> <p> Patch to fix bug </p> Ticket Vicente Botet <vicente.botet@…> Tue, 07 Dec 2010 19:48:14 GMT type changed https://svn.boost.org/trac10/ticket/4918#comment:1 https://svn.boost.org/trac10/ticket/4918#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Marshall Clow Fri, 07 Jan 2011 00:23:50 GMT <link>https://svn.boost.org/trac10/ticket/4918#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4918#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67742" title="Applied patch - refs #4918; will merge to release after tests cycle">[67742]</a>) Applied patch - refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4918" title="#4918: Patches: concept_check.hpp triggers self-assignment warnings (closed: fixed)">#4918</a>; will merge to release after tests cycle </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Fri, 07 Jan 2011 00:24:16 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/4918#comment:3 https://svn.boost.org/trac10/ticket/4918#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">jsiek</span> to <span class="trac-author">Marshall Clow</span> </li> </ul> Ticket Marshall Clow Sat, 08 Jan 2011 18:38:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4918#comment:4 https://svn.boost.org/trac10/ticket/4918#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67792" title="Merging fixes to release; fixes #2294 fixes #4918 fixes #3645 refs ...">[67792]</a>) Merging fixes to release; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2294" title="#2294: Bugs: Please improve test annotation (closed: fixed)">#2294</a> fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4918" title="#4918: Patches: concept_check.hpp triggers self-assignment warnings (closed: fixed)">#4918</a> fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3645" title="#3645: Bugs: iterator_facade does not work in presence of ::implicit_cast (closed: fixed)">#3645</a> refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2823" title="#2823: Bugs: [fusion] vector copy constructor copies sequence members in different ... (closed: fixed)">#2823</a> refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1427" title="#1427: Feature Requests: [iterator] transform_iterator should use boost::result_of to determine ... (closed: fixed)">#1427</a> refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2893" title="#2893: Library Submissions: Function Input Iterator (closed: fixed)">#2893</a> </p> Ticket