From 5b05417df30ceea6594797aaa925791ae5464043 Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Thu, 27 Dec 2012 12:33:43 -0800 Subject: [PATCH] Complication error when using gcc 4.7.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: There is a compilation error while using gcc 4.7.1. util/ldb_cmd.cc:381:3: error: ‘leveldb::ReadOptions::ReadOptions’ names the constructor, not the type util/ldb_cmd.cc:381:37: error: expected ‘;’ before ‘read_options’ util/ldb_cmd.cc:381:49: error: statement cannot resolve address of overloaded function Test Plan: make clean check Reviewers: sheki, emayanke, zshao Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D7659 --- util/ldb_cmd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/ldb_cmd.cc b/util/ldb_cmd.cc index f454ab81d..eca681bd0 100644 --- a/util/ldb_cmd.cc +++ b/util/ldb_cmd.cc @@ -378,8 +378,8 @@ void DBQuerier::DoCommand() { return; } - leveldb::ReadOptions::ReadOptions read_options; - leveldb::WriteOptions::WriteOptions write_options; + leveldb::ReadOptions read_options; + leveldb::WriteOptions write_options; std::string line; std::string key;