Boost C++ Libraries: Ticket #5081: Extra semicolons cause clang to emit warnings https://svn.boost.org/trac10/ticket/5081 <p> While compiling with clang TOT, I got a series of warnings like </p> <pre class="wiki">In file included from ../../../libs/test/src/unit_test_monitor.cpp:16: In file included from ../../../boost/test/impl/unit_test_monitor.ipp:20: ../../../boost/test/unit_test_monitor.hpp:56:53: warning: extra ';' inside a class [-pedantic] BOOST_TEST_SINGLETON_CONS( unit_test_monitor_t ); ^ In file included from ../../../libs/test/src/unit_test_monitor.cpp:16: In file included from ../../../boost/test/impl/unit_test_monitor.ipp:22: In file included from ../../../boost/test/test_tools.hpp:19: ../../../boost/test/predicate_result.hpp:44:37: warning: extra ';' inside a struct [-pedantic] struct dummy { void nonnull() {}; }; </pre><p> Attached is a patch to silence these warnings. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5081 Trac 1.4.3 Marshall Clow Mon, 17 Jan 2011 21:38:34 GMT attachment set https://svn.boost.org/trac10/ticket/5081 https://svn.boost.org/trac10/ticket/5081 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">5081-mtc.patch</span> </li> </ul> <p> Removes unnecessary semicolons </p> Ticket Steven Watanabe Tue, 18 Jan 2011 17:06:09 GMT <link>https://svn.boost.org/trac10/ticket/5081#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5081#comment:1</guid> <description> <p> Clang is wrong here. If you check the standard, you'll find that a semicolon is permitted after the definition of a member function. I don't know why, but that's what the grammar says. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 19 Jan 2011 17:46:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5081#comment:2 https://svn.boost.org/trac10/ticket/5081#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">invalid</span> </li> </ul> <p> Bug in clang - fixed now. </p> Ticket