]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
memtable: Explicit cast to void to silence memset warning ceph-mimic
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 18:17:31 +0000 (14:17 -0400)
committerKefu Chai <tchaikov@gmail.com>
Fri, 11 May 2018 00:46:01 +0000 (08:46 +0800)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
memtable/inlineskiplist.h

index efcb93c85b0d9345143ff84e1fdfdc74716e798c..2df775f0d193bfa60c0e9dc51d3450fac1b2dd44 100644 (file)
@@ -287,7 +287,7 @@ struct InlineSkipList<Comparator>::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<void*>(&next_[0]), &height, sizeof(int));
   }
 
   // Retrieves the value passed to StashHeight.  Undefined after a call