summaryrefslogtreecommitdiff
path: root/boost/multi_index/detail/ignore_wstrict_aliasing.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/multi_index/detail/ignore_wstrict_aliasing.hpp')
-rw-r--r--boost/multi_index/detail/ignore_wstrict_aliasing.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/boost/multi_index/detail/ignore_wstrict_aliasing.hpp b/boost/multi_index/detail/ignore_wstrict_aliasing.hpp
new file mode 100644
index 0000000000..ae398456d1
--- /dev/null
+++ b/boost/multi_index/detail/ignore_wstrict_aliasing.hpp
@@ -0,0 +1,18 @@
+/* Copyright 2003-2016 Joaquin M Lopez Munoz.
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ * See http://www.boost.org/libs/multi_index for library home page.
+ */
+
+#include <boost/config.hpp>
+
+#if defined(BOOST_GCC)&&(BOOST_GCC>=4*10000+6*100)
+#if !defined(BOOST_MULTI_INDEX_DETAIL_RESTORE_WSTRICT_ALIASING)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#else
+#pragma GCC diagnostic pop
+#endif
+#endif