Boost C++ Libraries: Ticket #5832: Unable to clean compile Boost::Test (1.40.0) with GCC using -Weffc++ https://svn.boost.org/trac10/ticket/5832 <p> Somewhat petty squawk, but were are full believers in using tools to locate problems at compile time. So our command line includes -Wall -Wextra -Woverloaded-virtual -Wreorder -Weffc++. Using -Weffc++ results in a non-virtual dtor warning for nil_t. Specifying -Wno-non-virtual-dtor with -Weffc++ has no effect. Boost appears to be collateral damage on this one. </p> <p> /usr/include/boost/test/unit_test_suite.hpp: </p> <p> PREVIOUS: struct nil_t { } </p> <p> MODIFIED: struct nil_t { </p> <blockquote> <p> explicit nil_t() { } virtual ~nil_t() { } </p> </blockquote> <p> }; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5832 Trac 1.4.3 Steven Watanabe Tue, 30 Aug 2011 04:09:51 GMT status, component changed; resolution set https://svn.boost.org/trac10/ticket/5832#comment:1 https://svn.boost.org/trac10/ticket/5832#comment:1 <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> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> </ul> <p> Sorry, but -Weffc++ is basically useless with Boost. It enforces conventions which are simply not applicable. Note that -Wnon-virtual-dtor is more limited than -Weffc++, since -Wnon-virtual-dtor only applies to polymorphic classes. </p> Ticket John Maddock Sun, 16 Oct 2011 18:58:00 GMT <link>https://svn.boost.org/trac10/ticket/5832#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5832#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74984" title="Merge recent bug fixes from Trunk. Refs #6014 Refs #5832 Refs #5934 ...">[74984]</a>) Merge recent bug fixes from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6014" title="#6014: Patches: Boost.Math patch to fix long double support on OpenBSD/hppa &amp; hppa64 (closed: fixed)">#6014</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5832" title="#5832: Bugs: Unable to clean compile Boost::Test (1.40.0) with GCC using -Weffc++ (closed: invalid)">#5832</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5934" title="#5934: Bugs: boost/math/tools/tuple.hpp omits &#34;tr1/&#34; from #include directive. (closed: fixed)">#5934</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6001" title="#6001: Bugs: math::tools::roots eps_tolerance wrong behaviour at 0. 0. (closed: fixed)">#6001</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5982" title="#5982: Bugs: Wrong value of `one_div_two_pi' in &lt;boost/math/constants/constants.hpp&gt; (closed: fixed)">#5982</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5914" title="#5914: Bugs: std:: qualifier missing for &lt;cstring&gt; function (closed: fixed)">#5914</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5927" title="#5927: Bugs: Missing #include guards (closed: fixed)">#5927</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>