Disable -Wunused-function in swap_array(_of_array)_of_class.cpp

This commit is contained in:
Peter Dimov
2021-11-01 03:05:47 +02:00
parent c3a398b9a0
commit 6a91536da6
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,10 @@
#include <algorithm> //for std::copy and std::equal
#include <cstddef> //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

View File

@ -17,6 +17,10 @@
#include <algorithm> //for std::copy and std::equal
#include <cstddef> //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