Ticket #6712: boost_test_warnings.patch

File boost_test_warnings.patch, 2.3 KB (added by mlang@…, 11 years ago)

Proposed patch to eliminate warnings with GCC

  • boost/test/impl/framework.ipp

     
    186186
    187187        return false;
    188188    }
    189     virtual void    test_suite_finish( test_suite const& ts )
     189    virtual void    test_suite_finish( test_suite const& )
    190190    {
    191191        --m_depth;
    192192    }
  • boost/test/impl/test_tree.ipp

     
    315315
    316316//____________________________________________________________________________//
    317317
    318 auto_test_unit_registrar::auto_test_unit_registrar( test_unit_generator const& tc_gen, decorator::collector* decorators )
     318auto_test_unit_registrar::auto_test_unit_registrar( test_unit_generator const& tc_gen, decorator::collector* )
    319319{
    320320    curr_ts_store().back()->add( tc_gen );
    321321
  • boost/test/impl/execution_monitor.ipp

     
    13521352#elif defined(__GLIBC__) && defined(__USE_GNU) && !defined(BOOST_CLANG) && !defined(BOOST_NO_FENV_H)
    13531353    ::feclearexcept(BOOST_FPE_ALL);
    13541354    int res = ::feenableexcept( mask );
    1355     return res == -1 ? BOOST_FPE_INV : (unsigned)res;
     1355    return res == -1 ? (unsigned)BOOST_FPE_INV : (unsigned)res;
    13561356#else
    13571357    /* Not Implemented  */
    13581358    return 0;
     
    13871387#elif defined(__GLIBC__) && defined(__USE_GNU) && !defined(BOOST_CLANG) && !defined(BOOST_NO_FENV_H)
    13881388    ::feclearexcept(BOOST_FPE_ALL);
    13891389    int res = ::fedisableexcept( mask );
    1390     return res == -1 ? BOOST_FPE_INV : (unsigned)res;
     1390    return res == -1 ? (unsigned)BOOST_FPE_INV : (unsigned)res;
    13911391#else
    13921392    /* Not Implemented */
    13931393    return BOOST_FPE_INV;
  • boost/test/impl/debug.ipp

     
    944944    }
    945945
    946946    _CrtSetDbgFlag ( flags );
     947#else
     948    unit_test::ut_detail::ignore_unused_variable_warning( report_file );
    947949#endif // BOOST_MS_CRT_BASED_DEBUG
    948950}
    949951