Boost C++ Libraries: Ticket #9965: execution_monitor.ipp causes compilation failure https://svn.boost.org/trac10/ticket/9965 <p> test\impl\execution_monitor.ipp causes compilation failures from MSVC 10.0 because of this function: </p> <pre class="wiki">int BOOST_TEST_CALL_DECL assert_reporting_function( int reportType, char* userMessage, int* ) { switch( reportType ) { case BOOST_TEST_CRT_ASSERT: detail::report_error( execution_exception::user_error, userMessage ); return 1; // return value and retVal are not important since we never reach this line case BOOST_TEST_CRT_ERROR: detail::report_error( execution_exception::system_error, userMessage ); return 1; // return value and retVal are not important since we never reach this line default: return 0; // use usual reporting method } } // assert_reporting_function </pre><p> The MSVC compiler gives a warning that there is unreachable code (the lines that say "return 1;") and then because it has been told to treat warnings as errors, the compilation fails. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9965 Trac 1.4.3 viboes Sun, 18 May 2014 18:45:40 GMT component, description changed; owner set https://svn.boost.org/trac10/ticket/9965#comment:1 https://svn.boost.org/trac10/ticket/9965#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gennadiy Rozental</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/9965?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Raffi Enficiaud Sat, 28 Mar 2015 01:20:17 GMT <link>https://svn.boost.org/trac10/ticket/9965#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9965#comment:2</guid> <description> <p> Hi, </p> <p> Why would MSVC treat warnings as errors? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Tue, 07 Jul 2015 09:13:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9965#comment:3 https://svn.boost.org/trac10/ticket/9965#comment:3 <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> </ul> Ticket