diff options
Diffstat (limited to 'host/lib/deps')
| -rw-r--r-- | host/lib/deps/flatbuffers/include/flatbuffers/flatbuffers.h | 8 | ||||
| -rw-r--r-- | host/lib/deps/pybind11/include/pybind11/pybind11.h | 5 | 
2 files changed, 12 insertions, 1 deletions
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 <cmath>  #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_ 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  | 
