ignore_wstrict_aliasing.hpp 548 B

123456789101112131415161718
  1. /* Copyright 2003-2016 Joaquin M Lopez Munoz.
  2. * Distributed under the Boost Software License, Version 1.0.
  3. * (See accompanying file LICENSE_1_0.txt or copy at
  4. * http://www.boost.org/LICENSE_1_0.txt)
  5. *
  6. * See http://www.boost.org/libs/multi_index for library home page.
  7. */
  8. #include <boost/config.hpp>
  9. #if defined(BOOST_GCC)&&(BOOST_GCC>=4*10000+6*100)
  10. #if !defined(BOOST_MULTI_INDEX_DETAIL_RESTORE_WSTRICT_ALIASING)
  11. #pragma GCC diagnostic push
  12. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  13. #else
  14. #pragma GCC diagnostic pop
  15. #endif
  16. #endif