]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
messages,mon,osd: silence gcc-8 warnings related to memset() 23054/head
authorKefu Chai <kchai@redhat.com>
Sun, 6 May 2018 06:39:38 +0000 (14:39 +0800)
committerSage Weil <sage@redhat.com>
Sat, 14 Jul 2018 18:13:17 +0000 (13:13 -0500)
commitff8a8a30e74f18999d9c4fcd45fb753de7fbcd03
treea7e095b96c9f929ff6d59c69e41fee2b67f62663
parent488df8a1076c4f5fc5b8d18a90463262c438740f
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