From ceabf8066c79e335cf4c1ddf1ef86d84e3ae3cc6 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 11 Jan 2019 00:32:39 +0200 Subject: [PATCH] Use __attribute__((deprecated)) on clang 3.8 to avoid a warning --- include/boost/mp11/detail/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/mp11/detail/config.hpp b/include/boost/mp11/detail/config.hpp index eab5404..1c4b1ed 100644 --- a/include/boost/mp11/detail/config.hpp +++ b/include/boost/mp11/detail/config.hpp @@ -125,7 +125,7 @@ #if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1900 ) # define BOOST_MP11_DEPRECATED(msg) -#elif BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 50000 ) +#elif BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 50000 ) || BOOST_MP11_WORKAROUND( BOOST_MP11_CLANG, < 309 ) # define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg))) #else # define BOOST_MP11_DEPRECATED(msg) [[deprecated(msg)]]