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/pybind11/include/pybind11/pybind11.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/deps/pybind11') diff --git a/host/lib/deps/pybind11/include/pybind11/pybind11.h b/host/lib/deps/pybind11/include/pybind11/pybind11.h index 605f06cc0..2ce5fcbcd 100644 --- a/host/lib/deps/pybind11/include/pybind11/pybind11.h +++ b/host/lib/deps/pybind11/include/pybind11/pybind11.h @@ -39,6 +39,9 @@ # if __GNUC__ >= 7 # pragma GCC diagnostic ignored "-Wnoexcept-type" # endif +#elif defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-value" #endif #include "attr.h" @@ -2001,6 +2004,6 @@ NAMESPACE_END(PYBIND11_NAMESPACE) #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) # pragma warning(pop) -#elif defined(__GNUG__) && !defined(__clang__) +#elif defined(__GNUG__) # pragma GCC diagnostic pop #endif -- cgit v1.2.3