Boost C++ Libraries: Ticket #8032: Warning fixes in circular_buffer https://svn.boost.org/trac10/ticket/8032 <p> We have a zero warning policy in our development projects and experience lots of warnings in several boost libraries. With every new boost version we need to apply a set of warning fixes. </p> <p> It would help a lot if you could integrate these wanting fixes into future boost releases. </p> <p> Please find attached a patch file against boost 1.53.0 which fixes several warnings in circular_buffer. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8032 Trac 1.4.3 Franz Detro <franz.detro@…> Tue, 12 Feb 2013 09:22:33 GMT attachment set https://svn.boost.org/trac10/ticket/8032 https://svn.boost.org/trac10/ticket/8032 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">circular_buffer.diff</span> </li> </ul> Ticket Marshall Clow Tue, 21 May 2013 18:26:34 GMT owner, status changed https://svn.boost.org/trac10/ticket/8032#comment:1 https://svn.boost.org/trac10/ticket/8032#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jan Gaspar</span> to <span class="trac-author">Marshall Clow</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Marshall Clow Tue, 21 May 2013 19:14:25 GMT <link>https://svn.boost.org/trac10/ticket/8032#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8032#comment:2</guid> <description> <p> Applied patch in <a class="changeset" href="https://svn.boost.org/trac10/changeset/84405" title="Applied patch from #8032">[84405]</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 23 May 2013 18:45:35 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8032#comment:3 https://svn.boost.org/trac10/ticket/8032#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/84450" title="Apply patch to release branch; Fixes #8032">[84450]</a>) Apply patch to release branch; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8032" title="#8032: Patches: Warning fixes in circular_buffer (closed: fixed)">#8032</a> </p> Ticket pbf@… Tue, 12 Nov 2013 21:25:28 GMT <link>https://svn.boost.org/trac10/ticket/8032#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8032#comment:4</guid> <description> <p> When building against boost 1.55 using <a class="missing wiki">VisualStudio</a> 2010 with warning level 4, I now see: </p> <p> 1&gt;C:\src\svn\OTI\<a class="missing wiki">ThirdParty</a>\boost_1_55_0_OT1\include\boost/circular_buffer/base.hpp(199): warning C4172: returning address of local variable or temporary </p> <p> Likewise, building using gcc 4.4.7 on <a class="missing wiki">RedHat</a> produces the following warning: </p> <table class="wiki"> <tr>/media/sf_C_DRIVE/src/svn/OTI/ThirdParty/boost_1_55_0_OT1/include/boost/circular_buffer/base.hpp:2157: error: suggest parentheses around ‘&amp;&amp;’ within ‘<td style="text-align: left">’ </td></tr></table> <p> The MSVC issue seems to be a regression introduced by the adoption of move semantics (ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7888" title="#7888: Feature Requests: circular_buffer should support move semantics (closed: fixed)">#7888</a>), so I'll make the same comment there. I'm guessing it's the same case for the gcc warning, although the warning itself doesn't make much sense to me, given the line in question is: </p> <p> replace(p, this_type::move_if_noexcept(*next)); </p> </description> <category>Ticket</category> </item> <item> <author>pbf@…</author> <pubDate>Tue, 12 Nov 2013 22:27:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8032#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8032#comment:5</guid> <description> <p> Just to follow up, Antony has kindly said he'll fix the warnings as part of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7888" title="#7888: Feature Requests: circular_buffer should support move semantics (closed: fixed)">#7888</a>, so hopefully circular_buffer will be warning free once again. </p> </description> <category>Ticket</category> </item> <item> <author>michael.broida@…</author> <pubDate>Thu, 22 May 2014 22:52:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8032#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8032#comment:6</guid> <description> <p> We have hit the same warnings in 1.55.0 with VS2010 and all warnings treated as errors. This issue shows "fixed", but where/when was it fixed? <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7888" title="#7888: Feature Requests: circular_buffer should support move semantics (closed: fixed)">#7888</a> shows "reopened", but that was six months ago and no more info. </p> </description> <category>Ticket</category> </item> <item> <author>Matthäus Brandl <brandl.matthaeus@…></author> <pubDate>Thu, 16 Oct 2014 14:40:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8032#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8032#comment:7</guid> <description> <p> Using Boost 1.56.0 warning C4172 is still reported by VS2010. </p> </description> <category>Ticket</category> </item> </channel> </rss>