mirror of https://github.com/ArduPilot/ardupilot
tests: avoid warning
This commit is contained in:
parent
04e29d58e3
commit
ebc6272865
|
@ -1,10 +1,14 @@
|
||||||
/*
|
/*
|
||||||
* Utility header for unit tests with gtest.
|
* Utility header for unit tests with gtest.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
|
||||||
#define AP_GTEST_PRINTATBLE_PARAM_MEMBER(class_name_, printable_member_) \
|
#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) \
|
::std::ostream& operator<<(::std::ostream& os, const class_name_& param) \
|
||||||
{ \
|
{ \
|
||||||
return os << param.printable_member_; \
|
return os << param.printable_member_; \
|
||||||
|
|
Loading…
Reference in New Issue