From a80ec7c58a1bacd4c3bbd972b188c2bd55e332ab Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 2 Apr 2020 21:45:55 -0700 Subject: rpclib: Remove some warnings from object.hpp This removes -Wmaybe-uninitialized and -Wclass-memaccess from this file when using gcc. --- host/lib/deps/rpclib/include/rpc/msgpack/object.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'host') diff --git a/host/lib/deps/rpclib/include/rpc/msgpack/object.hpp b/host/lib/deps/rpclib/include/rpc/msgpack/object.hpp index 5eef9fa7b..02cd6ff1c 100644 --- a/host/lib/deps/rpclib/include/rpc/msgpack/object.hpp +++ b/host/lib/deps/rpclib/include/rpc/msgpack/object.hpp @@ -33,6 +33,14 @@ namespace clmdep_msgpack { +#if defined(__clang__) || defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +# if defined(__GNUC__) && __GNUC__ >= 8 +# pragma GCC diagnostic ignored "-Wclass-memaccess" +# endif +#endif + /// @cond MSGPACK_API_VERSION_NAMESPACE(v1) { /// @endcond @@ -830,6 +838,10 @@ inline std::ostream& operator<< (std::ostream& s, const clmdep_msgpack::object& } // MSGPACK_API_VERSION_NAMESPACE(v1) /// @endcond +#if defined(__clang__) || defined(__GNUC__) +# pragma GCC diagnostic pop +#endif + } // namespace clmdep_msgpack #include "rpc/msgpack/type.hpp" -- cgit v1.2.3