diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-04-02 21:45:55 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-14 10:29:29 -0500 |
commit | a80ec7c58a1bacd4c3bbd972b188c2bd55e332ab (patch) | |
tree | fc24407f694fd19a47fcd878087a5e6a5b4e2509 | |
parent | e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a (diff) | |
download | uhd-a80ec7c58a1bacd4c3bbd972b188c2bd55e332ab.tar.gz uhd-a80ec7c58a1bacd4c3bbd972b188c2bd55e332ab.tar.bz2 uhd-a80ec7c58a1bacd4c3bbd972b188c2bd55e332ab.zip |
rpclib: Remove some warnings from object.hpp
This removes -Wmaybe-uninitialized and -Wclass-memaccess from this file
when using gcc.
-rw-r--r-- | host/lib/deps/rpclib/include/rpc/msgpack/object.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
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" |