]> git.apps.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)
committerCasey Bodley <cbodley@redhat.com>
Mon, 7 May 2018 19:34:57 +0000 (15:34 -0400)
commit7a5acc3b4a154059136c7adc46423cb8899707b7
treef958fc1b7d028bab49468c9dbe9207af80ea1788
parent64bcbf52bf722d052c37aafa95c54e774c345de4
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>
(cherry picked from commit 557cb0614586880512c9213676f8f6dcd226eb38)
src/client/Inode.h
src/messages/MClientReply.h
src/messages/MMonSubscribeAck.h
src/mon/LogMonitor.cc
src/mon/MonMap.h
src/osd/OSDMap.h