]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/compile_test/test_compile_result.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / test_compile_result.hpp
index cd2c075a4c4d768d21ae04be7bb79f3eda9b43af..0bb419f2c8545d19c219be8a172da984e2993c91 100644 (file)
@@ -52,7 +52,14 @@ template <class T1, class T2>
 inline void check_result_imp(T1, T2)
 {
    // This is a static assertion that should always fail to compile...
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
+#endif
    typedef BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE int static_assertion[local_is_same<T1, T2>::value ? 1 : 0];
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)))
+#pragma GCC diagnostic pop
+#endif
 }
 
 template <class T1, class T2>