From 2ab7065af1565211409456c443431ebe093f53a2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 May 2015 13:19:10 -0700 Subject: [PATCH] build: avoid unused-variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: [noticed a new warning when building with the very latest gcc] * db/memtablerep_bench.cc (FLAGS_env): Remove declaration of unused varaible, to avoid this warning/error: db/memtablerep_bench.cc:135:22: error: ‘FLAGS_env’ defined but not\ used [-Werror=unused-variable] static rocksdb::Env* FLAGS_env = rocksdb::Env::Default(); ^ Test Plan: compile Reviewers: ljin, rven, igor.sugak, yhchiang, sdong, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D37983 --- db/memtablerep_bench.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/memtablerep_bench.cc b/db/memtablerep_bench.cc index 5bdfa836d..feb3723eb 100644 --- a/db/memtablerep_bench.cc +++ b/db/memtablerep_bench.cc @@ -132,8 +132,6 @@ DEFINE_int64(seed, 0, "Seed base for random number generators. " "When 0 it is deterministic."); -static rocksdb::Env* FLAGS_env = rocksdb::Env::Default(); - namespace rocksdb { namespace {