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