We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b663353 commit fd5e60fCopy full SHA for fd5e60f
include/boost/test/detail/config.hpp
@@ -151,7 +151,8 @@ class type_info;
151
#endif /* ifndef BOOST_PP_VARIADICS */
152
153
// some versions of VC exibit a manifest error with this BOOST_UNREACHABLE_RETURN
154
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1910)
+// gcc <= 4.6 fails with unused variable even when the return is never reached
155
+#if BOOST_WORKAROUND(BOOST_MSVC, < 1910) || (defined(BOOST_GCC) && BOOST_GCC < 40700)
156
# define BOOST_TEST_UNREACHABLE_RETURN(x) return x
157
#else
158
# define BOOST_TEST_UNREACHABLE_RETURN(x) BOOST_UNREACHABLE_RETURN(x)
0 commit comments