disable_warnings.hpp 823 B

1234567891011121314151617181920212223242526272829
  1. /* boost random/detail/disable_warnings.hpp header file
  2. *
  3. * Copyright Steven Watanabe 2009
  4. * Distributed under the Boost Software License, Version 1.0. (See
  5. * accompanying file LICENSE_1_0.txt or copy at
  6. * http://www.boost.org/LICENSE_1_0.txt)
  7. *
  8. * See http://www.boost.org for most recent version including documentation.
  9. *
  10. * $Id$
  11. *
  12. */
  13. // No #include guard. This header is intended to be included multiple times.
  14. #include <boost/config.hpp>
  15. #ifdef BOOST_MSVC
  16. #pragma warning(push)
  17. #pragma warning(disable:4512)
  18. #pragma warning(disable:4127)
  19. #pragma warning(disable:4724)
  20. #pragma warning(disable:4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
  21. #endif
  22. #if defined(BOOST_GCC) && BOOST_GCC >= 40600
  23. #pragma GCC diagnostic push
  24. #pragma GCC diagnostic ignored "-Wlogical-op"
  25. #endif