From 60deb4485e67f5c4e21aaf1b9e80ae2d8b9be611 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 26 Nov 2018 21:32:02 -0800 Subject: [PATCH] Fix build with ROCKSDB_LITE and -Wunused-private-field (#4715) Summary: The error message of databases/rocksdb-lite (FreeBSD port) is as follows: ``` tools/db_bench_tool.cc:1976:16: error: private field 'trace_options_' is not used [-Werror,-Wunused-private-field] TraceOptions trace_options_; ^ ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/4715 Differential Revision: D13207902 Pulled By: ajkr fbshipit-source-id: be3c612eba656aeddb77e35e2f201dd25dc92f7e --- tools/db_bench_tool.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index dcad679b51..34f800ff26 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -1985,7 +1985,9 @@ class Benchmark { int64_t max_num_range_tombstones_; WriteOptions write_options_; Options open_options_; // keep options around to properly destroy db later +#ifndef ROCKSDB_LITE TraceOptions trace_options_; +#endif int64_t reads_; int64_t deletes_; double read_random_exp_range_;