Boost C++ Libraries: Ticket #8727: extra ";" warning with -pedantic options under g++ 4.7.2 compiler https://svn.boost.org/trac10/ticket/8727 <p> My current boost version is boost_1_54_0_beta1. </p> <p> In the signals2 component, there is two 'extra ";"' warnings with the -pedantic option under g++ 4.7.2 compiler. </p> <p> In the boost\signals2\signal.hpp line 58: </p> <pre class="wiki">// free swap function, findable by ADL template&lt;typename Signature, typename Combiner, typename Group, typename GroupCompare, typename SlotFunction, typename ExtendedSlotFunction, typename Mutex&gt; void swap( signal&lt;Signature, Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex&gt; &amp;sig1, signal&lt;Signature, Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex&gt; &amp;sig2) { sig1.swap(sig2); }; </pre><p> In the boost\signals2\detail\signal_template.hpp line 740. </p> <pre class="wiki">#ifdef BOOST_NO_CXX11_VARIADIC_TEMPLATES // free swap function for signalN classes, findable by ADL template&lt;BOOST_SIGNALS2_SIGNAL_TEMPLATE_DECL(BOOST_SIGNALS2_NUM_ARGS)&gt; void swap( BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS) &lt;BOOST_SIGNALS2_SIGNAL_TEMPLATE_INSTANTIATION&gt; &amp;sig1, BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS) &lt;BOOST_SIGNALS2_SIGNAL_TEMPLATE_INSTANTIATION&gt; &amp;sig2 ) { sig1.swap(sig2); }; #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8727 Trac 1.4.3 Frank Mori Hess Mon, 15 Jul 2013 02:14:31 GMT <link>https://svn.boost.org/trac10/ticket/8727#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8727#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85042" title="Removed some spurious semicolons. Refs #8727 ">[85042]</a>) Removed some spurious semicolons. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8727" title="#8727: Bugs: extra &#34;;&#34; warning with -pedantic options under g++ 4.7.2 compiler (closed: fixed)">#8727</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Frank Mori Hess</dc:creator> <pubDate>Fri, 26 Jul 2013 01:11:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8727#comment:2 https://svn.boost.org/trac10/ticket/8727#comment:2 <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> Fix has been merged to release branch. </p> Ticket