From 681713aaae832af40383abf7538c23e10c1cbc56 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 15:46:23 +0100 Subject: lib: deps: Ignore more warnings in our versions of rpclib, pybind11 This modifies the UHD versions of those libraries to turn off warnings that appear with Clang. --- host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib/deps/flatbuffers/include') diff --git a/host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h b/host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h index a1a95f00e..d267274a5 100644 --- a/host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h +++ b/host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h @@ -19,6 +19,11 @@ #include "flatbuffers/base.h" +#if defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-copy" +#endif + #if defined(FLATBUFFERS_NAN_DEFAULTS) #include #endif @@ -2610,4 +2615,7 @@ volatile __attribute__((weak)) const char *flatbuffer_version_string = // clang-format on +#if defined(__clang__) +# pragma GCC diagnostic pop +#endif #endif // FLATBUFFERS_H_ -- cgit v1.2.3