]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages,mon,osd: silence gcc-8 warnings related to memset()
authorKefu Chai <kchai@redhat.com>
Sun, 6 May 2018 06:39:38 +0000 (14:39 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 May 2018 07:26:14 +0000 (15:26 +0800)
commit557cb0614586880512c9213676f8f6dcd226eb38
tree3a9b40287a882599f1dcda2a1b8483c34b69974b
parent62382040ee9b655a68b15ccb43cebb39c9dc3a45
messages,mon,osd: silence gcc-8 warnings related to memset()

this silences warnings like:

warning: ‘void* memset(void*, int, size_t)’ writing to an object of
non-trivial type ‘struct uuid_d’; use assignment instead [-Wcl\
ass-memaccess]

uuid_d only contains boost::uuids::uuid, which is "nil" initialized in
uuid_d's ctor. so we don't need to bother with memset() it with 0.
the same applies to entity_inst_t.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/client/Inode.h
src/messages/MClientReply.h
src/messages/MMonSubscribeAck.h
src/mon/LogMonitor.cc
src/mon/MonMap.h
src/osd/OSDMap.h