disable_test_warnings.hpp 1.1 KB

12345678910111213141516171819202122232425
  1. /*-----------------------------------------------------------------------------+
  2. Copyright (c) 2008-2009: Joachim Faulhaber
  3. +------------------------------------------------------------------------------+
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENCE.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. +-----------------------------------------------------------------------------*/
  8. #ifndef BOOST_ICL_DETAIL_DISABLE_TEST_WARNINGS_HPP_JOFA_101031
  9. #define BOOST_ICL_DETAIL_DISABLE_TEST_WARNINGS_HPP_JOFA_101031
  10. #include <boost/icl/detail/boost_config.hpp>
  11. #include <boost/detail/workaround.hpp>
  12. #include <boost/test/detail/suppress_warnings.hpp>
  13. #ifdef BOOST_MSVC // These warnings are disabled permanently for tests.
  14. #pragma warning(disable:4996) // Function call with parameters that may be unsafe
  15. #pragma warning(disable:4503) // decorated name length exceeded, name was truncated
  16. #pragma warning(disable:4702) // unreachable code
  17. #endif
  18. #if defined(BOOST_GCC)
  19. # pragma GCC diagnostic ignored "-Wsign-compare"
  20. #endif
  21. #endif // BOOST_ICL_DETAIL_DISABLE_TEST_WARNINGS_HPP_JOFA_101031