From 5d9586031c67c258dc7fdbf5f4d92aa833a00e67 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 21 Nov 2023 19:19:50 +0200 Subject: [PATCH] Disable -Wdeprecated-copy as well, for Clang 10, 11, 12 --- examples/speed_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/speed_test.cpp b/examples/speed_test.cpp index 0cd09161a..4976802f0 100644 --- a/examples/speed_test.cpp +++ b/examples/speed_test.cpp @@ -16,6 +16,10 @@ # if __has_warning( "-Wdeprecated-copy-with-user-provided-copy" ) # pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy" # endif +// clang 10..12 emits this instead +# if __has_warning( "-Wdeprecated-copy" ) +# pragma clang diagnostic ignored "-Wdeprecated-copy" +# endif #endif #include