From e066884190138fd6f3bf5e2a14fbf06e92a686d8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 7 Jan 2024 02:23:21 +0200 Subject: [PATCH] -Wunused-but-set-variable is only in Clang 13 and higher --- test/mem_fn_eq_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mem_fn_eq_test.cpp b/test/mem_fn_eq_test.cpp index 53974bba..eb42ea93 100644 --- a/test/mem_fn_eq_test.cpp +++ b/test/mem_fn_eq_test.cpp @@ -20,7 +20,7 @@ #include #include -#if defined(__clang__) +#if defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION >= 130000 # pragma clang diagnostic ignored "-Wunused-but-set-variable" #endif