From 64f8484356ee611d90a77e6b02f6855a5c26cc17 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 10 Aug 2017 11:56:46 -0700 Subject: [PATCH] block_cache_tier: fix gcc-7 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Error was: utilities/persistent_cache/block_cache_tier.cc: In instantiation of ‘void rocksdb::Add(std::map, double>*, const string&, const T&) [with T = double; std::__cxx11::string = std::__cxx11::basic_string]’: utilities/persistent_cache/block_cache_tier.cc:147:40: required from here utilities/persistent_cache/block_cache_tier.cc:141:23: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] stats->insert({key, static_cast(t)}); fixing like #2562 Closes https://github.com/facebook/rocksdb/pull/2603 Differential Revision: D5600910 Pulled By: yiwu-arbug fbshipit-source-id: 891a5ec7e451d2dec6ad1b6b7fac545657f87363 --- utilities/persistent_cache/block_cache_tier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/persistent_cache/block_cache_tier.cc b/utilities/persistent_cache/block_cache_tier.cc index e65952cdb..714af2c62 100644 --- a/utilities/persistent_cache/block_cache_tier.cc +++ b/utilities/persistent_cache/block_cache_tier.cc @@ -136,7 +136,7 @@ Status BlockCacheTier::Close() { template void Add(std::map* stats, const std::string& key, const T& t) { - stats->insert({key, static_cast(t)}); + stats->insert({key, static_cast(t)}); } PersistentCache::StatsType BlockCacheTier::Stats() {