diff --git a/test/is_function_test.cpp b/test/is_function_test.cpp index d278320..1cb0423 100644 --- a/test/is_function_test.cpp +++ b/test/is_function_test.cpp @@ -12,7 +12,7 @@ #include "test.hpp" #include "check_integral_constant.hpp" -#ifdef BOOST_GCC +#if defined(BOOST_GCC) && (BOOST_GCC >= 70000) #pragma GCC diagnostic ignored "-Wnoexcept-type" #endif diff --git a/test/is_member_func_test.cpp b/test/is_member_func_test.cpp index cb47915..94b040a 100644 --- a/test/is_member_func_test.cpp +++ b/test/is_member_func_test.cpp @@ -12,7 +12,7 @@ #include "test.hpp" #include "check_integral_constant.hpp" -#ifdef BOOST_GCC +#if defined(BOOST_GCC) && (BOOST_GCC >= 70000) #pragma GCC diagnostic ignored "-Wnoexcept-type" #endif