From ebc6272865bc5cd3eb088034d645a9b83f8b4432 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 3 May 2020 21:34:01 +1000 Subject: [PATCH] tests: avoid warning --- tests/AP_gtest.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/AP_gtest.h b/tests/AP_gtest.h index c7d0734783..2ed1e61ad3 100644 --- a/tests/AP_gtest.h +++ b/tests/AP_gtest.h @@ -1,10 +1,14 @@ /* * Utility header for unit tests with gtest. */ + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + #include #define AP_GTEST_PRINTATBLE_PARAM_MEMBER(class_name_, printable_member_) \ +::std::ostream& operator<<(::std::ostream& os, const class_name_& param); \ ::std::ostream& operator<<(::std::ostream& os, const class_name_& param) \ { \ return os << param.printable_member_; \