From 6a91536da60d982b9a6466560195b61eaeebbaa2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 03:05:47 +0200 Subject: [PATCH] Disable -Wunused-function in swap_array(_of_array)_of_class.cpp --- test/swap/swap_array_of_array_of_class.cpp | 4 ++++ test/swap/swap_array_of_class.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/swap/swap_array_of_array_of_class.cpp b/test/swap/swap_array_of_array_of_class.cpp index 67541d3..1ea78da 100644 --- a/test/swap/swap_array_of_array_of_class.cpp +++ b/test/swap/swap_array_of_array_of_class.cpp @@ -17,6 +17,10 @@ #include //for std::copy and std::equal #include //for std::size_t +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wunused-function" +#endif + //Provide swap function in both the namespace of swap_test_class //(which is the global namespace), and the std namespace. //It's common to provide a swap function for a class in both diff --git a/test/swap/swap_array_of_class.cpp b/test/swap/swap_array_of_class.cpp index ef7327e..245602d 100644 --- a/test/swap/swap_array_of_class.cpp +++ b/test/swap/swap_array_of_class.cpp @@ -17,6 +17,10 @@ #include //for std::copy and std::equal #include //for std::size_t +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wunused-function" +#endif + //Provide swap function in both the namespace of swap_test_class //(which is the global namespace), and the std namespace. //It's common to provide a swap function for a class in both