Boost C++ Libraries: Ticket #8855: [math] GCC 4.8+ warns unused local typedef... https://svn.boost.org/trac10/ticket/8855 <p> GCC 4.8+ warns unused local typedef... </p> <pre class="wiki">airy.hpp:343 typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs] </pre><pre class="wiki">airy.hpp:349 typedef ‘forwarding_policy’ locally defined but not used [-Wunused-local-typedefs] </pre><pre class="wiki">airy.hpp:391 typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs] </pre><pre class="wiki">airy.hpp:397 typedef ‘forwarding_policy’ locally defined but not used [-Wunused-local-typedefs] </pre><pre class="wiki">beta.hpp:1334 typedef ‘evaluation_type’ locally defined but not used [-Wunused-local-typedefs] </pre><pre class="wiki">beta.hpp:1352 typedef ‘evaluation_type’ locally defined but not used [-Wunused-local-typedefs] </pre><p> Proposed fix attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8855 Trac 1.4.3 Chris Stylianou <chris5287@…> Thu, 18 Jul 2013 19:45:04 GMT attachment set https://svn.boost.org/trac10/ticket/8855 https://svn.boost.org/trac10/ticket/8855 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">math.patch</span> </li> </ul> Ticket pmachata@… Mon, 22 Jul 2013 14:18:34 GMT attachment set https://svn.boost.org/trac10/ticket/8855 https://svn.boost.org/trac10/ticket/8855 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1.54.0-math-unused_typedef.patch</span> </li> </ul> <p> Another unused typedef is in math/distributions/inverse_gaussian.hpp </p> Ticket pmachata@… Mon, 22 Jul 2013 14:26:46 GMT <link>https://svn.boost.org/trac10/ticket/8855#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8855#comment:1</guid> <description> <p> There's also one suspicious (unused) typedef in libs/math/test/compile_test/test_compile_result.hpp: </p> <pre class="wiki">template &lt;class T1, class T2&gt; inline void check_result_imp(T1, T2) { typedef int static_assertion[sizeof(T1) == 0xFFFF]; } </pre><p> That's kind of reminiscent of static assert, but that should be something like [-(sizeof(T1) == 0xFFFF)] instead. In any case, it's not clear to me what the condition itself is meant to test. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 22 Jul 2013 15:28:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8855#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8855#comment:2</guid> <description> <p> I'll get these fixed shortly, the one in test_compile_result.hpp is a static assert that <em>should always fail</em>. It also has to be implemented without including any other header (like static_assert.hpp) as those tests are designed to verify that all the needed headers have been included. I'll add a comment to that effect. </p> </description> <category>Ticket</category> </item> <item> <author>Petr Machata <pmachata@…></author> <pubDate>Mon, 22 Jul 2013 23:02:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8855#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8855#comment:3</guid> <description> <p> In that case I'd go with something like sizeof(T1) != sizeof(T1), as that's guaranteed to fail. But I don't know the code, 0xFFFF may be just as impossible. </p> <p> I guess the warning is no big deal, since this is for test suite only, but still, it would be nice to have the BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE copied over from static_assert.hpp. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 23 Jul 2013 11:09:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8855#comment:4 https://svn.boost.org/trac10/ticket/8855#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/85131" title="Fix gcc-4.8.x warnings. Fix some Mingw failures. Fixes #8855.">[85131]</a>) Fix gcc-4.8.x warnings. Fix some Mingw failures. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8855" title="#8855: Bugs: [math] GCC 4.8+ warns unused local typedef... (closed: fixed)">#8855</a>. </p> Ticket John Maddock Sat, 28 Sep 2013 16:19:56 GMT <link>https://svn.boost.org/trac10/ticket/8855#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8855#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85987" title="Merge accumulated patches from Trunk. Refs #8384, Refs #8855, refs ...">[85987]</a>) Merge accumulated patches from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8384" title="#8384: Feature Requests: Make shared_ptr movable (closed: invalid)">#8384</a>, Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8855" title="#8855: Bugs: [math] GCC 4.8+ warns unused local typedef... (closed: fixed)">#8855</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9107" title="#9107: Bugs: unused parameter warning in fraction with clang (closed: fixed)">#9107</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9109" title="#9109: Bugs: Warning in bessel with -Wshadow (closed: fixed)">#9109</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8333" title="#8333: Bugs: [math] PGI 11.3 problems (sph_bessel.cpp, sph_bessel.cpp) (closed: fixed)">#8333</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8621" title="#8621: Bugs: erf function gives wrong results with pgcpp - PGI 10.4 (closed: fixed)">#8621</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8732" title="#8732: Bugs: Need to protect calls against C99 math macro expansion (closed: fixed)">#8732</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8733" title="#8733: Feature Requests: Testing for unprotected references to C99 math macros (closed: fixed)">#8733</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8837" title="#8837: Bugs: boost::math::students_t quantile() fails for huge degrees of freedom (closed: fixed)">#8837</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8940" title="#8940: Bugs: Argument promotion fails dependent libs on platforms not supporting ... (closed: fixed)">#8940</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9042" title="#9042: Bugs: boost::math, cdf(complement(normal_distribution&lt;&gt;(...)) fails to catch ... (closed: fixed)">#9042</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9087" title="#9087: Support Requests: [boost math] error: no operator &#34;=&#34; matches these operands in ... (closed: fixed)">#9087</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9104" title="#9104: Bugs: boost::math::ellint_2 bug in x86_64 double precision (closed: fixed)">#9104</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9126" title="#9126: Bugs: Logistic distribution pdf() and cdf(complement()) fail to catch ... (closed: fixed)">#9126</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>