mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
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:
parent
e33619bcb6
commit
a80ec7c58a
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user