From: Adam C. Emerson Date: Wed, 9 May 2018 18:17:31 +0000 (-0400) Subject: memtable: Explicit cast to void to silence memset warning X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fceph-mimic;p=rocksdb.git memtable: Explicit cast to void to silence memset warning Signed-off-by: Adam C. Emerson --- diff --git a/memtable/inlineskiplist.h b/memtable/inlineskiplist.h index efcb93c8..2df775f0 100644 --- a/memtable/inlineskiplist.h +++ b/memtable/inlineskiplist.h @@ -287,7 +287,7 @@ struct InlineSkipList::Node { // next_[0]. This is used for passing data from AllocateKey to Insert. void StashHeight(const int height) { assert(sizeof(int) <= sizeof(next_[0])); - memcpy(&next_[0], &height, sizeof(int)); + memcpy(static_cast(&next_[0]), &height, sizeof(int)); } // Retrieves the value passed to StashHeight. Undefined after a call