From a4b8f2b6a089c480099f84ba2410dc293fc830e7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 6 Jan 2024 15:00:30 +0200 Subject: [PATCH] Suppress Clang warnings in mem_fn_eq_test --- test/mem_fn_eq_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/mem_fn_eq_test.cpp b/test/mem_fn_eq_test.cpp index 7611a9a..53974bb 100644 --- a/test/mem_fn_eq_test.cpp +++ b/test/mem_fn_eq_test.cpp @@ -20,6 +20,10 @@ #include #include +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wunused-but-set-variable" +#endif + struct X { int dm_1;