From 6f7e2ec54505e26a1d66c43b15b8d11540273fca Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Fri, 15 Mar 2019 00:27:09 +0300 Subject: [PATCH] test.hpp: Suppress Clang -Wignored-qualifiers warning ../libs/type_traits/test/test.hpp:221:9: warning: 'const' qualifier on reference type 'r_type' (aka 'int &') has no effect [-Wignored-qualifiers] --- test/test.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test.hpp b/test/test.hpp index 4d0eb32..864c695 100644 --- a/test/test.hpp +++ b/test/test.hpp @@ -208,6 +208,9 @@ typedef int (UDT::*mf8)(...); # elif defined(BOOST_INTEL) # pragma warning(push) # pragma warning(disable: 21) +# elif defined(BOOST_CLANG) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wignored-qualifiers" # endif // // This is intentional: @@ -228,6 +231,8 @@ typedef r_type cr_type; # elif defined(BOOST_INTEL) # pragma warning(pop) # pragma warning(disable: 985) // identifier truncated in debug information +# elif defined(BOOST_CLANG) +# pragma clang diagnostic pop # endif struct POD_UDT { int x; };