From 4634ef904e4fc9b720f50a3012fa3adafdc095db Mon Sep 17 00:00:00 2001 From: Anis Ladram Date: Thu, 10 Mar 2022 15:20:45 -0500 Subject: [PATCH] Fix -Wparentheses warning not ignored on NVCC BOOST_GCC is not defined for NVCC, therefore we should use BOOST_GCC_VERSION. --- include/boost/mpl/assert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/mpl/assert.hpp b/include/boost/mpl/assert.hpp index a0a5e36..2d7b209 100644 --- a/include/boost/mpl/assert.hpp +++ b/include/boost/mpl/assert.hpp @@ -184,7 +184,7 @@ template< typename P > struct assert_arg_pred_not typedef typename assert_arg_pred_impl

::type type; }; -#if defined(BOOST_GCC) && BOOST_GCC >= 80000 +#if defined(BOOST_GCC_VERSION) && BOOST_GCC_VERSION >= 80000 #define BOOST_MPL_IGNORE_PARENTHESES_WARNING #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wparentheses"