Boost C++ Libraries: Ticket #1415: Warnings need suppression in Boost.Test https://svn.boost.org/trac10/ticket/1415 <p> Using </p> <p> #include &lt;boost/test/included/test_exec_monitor.hpp&gt; </p> <p> for various BOOST_CHECKs produces a blizzard of warnings at MSVC level 4. </p> <p> I have added this to my .cpp file </p> <p> #if defined (_MSC_VER) # pragma warning(disable : 4310) <em> cast truncates constant value # pragma warning(disable : 4512) </em> assignment operator could not be generated # pragma warning(disable : 4702) <em> unreachable code #endif </em></p> <p> But it would be better to suppress these 'at source' with push'n'pops in individual modules? </p> <p> # pragma warning(push) </p> <p> # pragma warning(pop) </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1415 Trac 1.4.3 Paul A. Bristow Tue, 06 Nov 2007 17:50:10 GMT <link>https://svn.boost.org/trac10/ticket/1415#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1415#comment:1</guid> <description> <p> Correction - is Boost.Test *Trunk development* (not 1.34.1) </p> <p> Sorry. </p> <p> Paul </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Thu, 22 Nov 2007 20:17:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1415#comment:2 https://svn.boost.org/trac10/ticket/1415#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">worksforme</span> </li> </ul> <ol><li>I can't reproduce the issue neither with msvc 7.1 nor msvc 8.0. The only couple warnings I see are in io_saver.hpp and I am not in a position to disable those. </li></ol><ol start="2"><li>test_exec_monitor is deprocated. I recomment switching to included/unit_test.hpp </li></ol> Ticket