Boost C++ Libraries: Ticket #2765: "warning C4127: conditional expression is constant" https://svn.boost.org/trac10/ticket/2765 <p> All BOOST_CHECK_*, BOOST_REQUIRE_*, etc.. macros produce this warning under msvc8. A simple fix is to remove the const from the dummy_cond declaration in test_tools.hpp : namespace { bool dummy_cond = false; } </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2765 Trac 1.4.3 Gennadiy Rozental Sat, 06 Jun 2009 09:53:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2765#comment:1 https://svn.boost.org/trac10/ticket/2765#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> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/53673" title="Avoid warning. Fixes #2765">[53673]</a>) Avoid warning. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2765" title="#2765: Bugs: &#34;warning C4127: conditional expression is constant&#34; (closed: fixed)">#2765</a> </p> Ticket anonymous Tue, 26 Nov 2013 14:51:45 GMT <link>https://svn.boost.org/trac10/ticket/2765#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2765#comment:2</guid> <description> <p> There is a warning on clang build </p> <p> /home/wygos/libs/boost_1_55_0/include/boost/test/test_tools.hpp:309:18: warning: variable 'dummy_cond' is not needed and will not be emitted [-Wunneeded-internal-declaration] namespace { bool dummy_cond = false; } </p> <p> clang version 3.3 </p> </description> <category>Ticket</category> </item> </channel> </rss>