Boost C++ Libraries: Ticket #5986: clang warning: unused variable check_is_small https://svn.boost.org/trac10/ticket/5986 <p> Current clang issues warning in floating_point_comparison.hpp: </p> <pre class="wiki">warning: unused variable 'check_is_close warning: unused variable 'check_is_small </pre><p> There seems to be similar report for GCC in <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2390" title="#2390: Patches: [patch] fix gcc-4.3 &#34;unused&#34; warning in floating_point_comparison (closed: fixed)">#2390</a> </p> <p> The only way to deal with it in clang is to wrap the Boost.Test headers with </p> <pre class="wiki">#ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-variable" #endif #include &lt;boost/test/...&gt; #ifdef __clang__ #pragma clang diagnostic pop #endif </pre><p> Perhaps it is possible to solve it in the library, so users don't have to deal with it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5986 Trac 1.4.3 Gennadiy Rozental Tue, 07 Jul 2015 15:48:24 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/5986#comment:1 https://svn.boost.org/trac10/ticket/5986#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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> <p> These are not used in new release </p> Ticket