From 9d834c68d8cdf9ba02ee4503827f33e1da4cb761 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Wed, 9 May 2018 14:17:31 -0400 Subject: [PATCH] memtable: Explicit cast to void to silence memset warning Signed-off-by: Adam C. Emerson --- memtable/inlineskiplist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3