rpclib: Remove some warnings from object.hpp

This removes -Wmaybe-uninitialized and -Wclass-memaccess from this file
when using gcc.
This commit is contained in:
Martin Braun 2020-04-02 21:45:55 -07:00 committed by Aaron Rossetto
parent e33619bcb6
commit a80ec7c58a

View File

@ -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"