From e5e6f55bd1b691a48148b50e823f2150b8121051 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Mon, 23 Jun 2014 17:18:13 -0600 Subject: [PATCH] Fix compile error caused in LDB tool Summary: Fixed the following compile error. tools/reduce_levels_test.cc:89:31: error: no matching function for call to 'InitFromCmdLineArgs' LDBCommand* level_reducer = LDBCommand::InitFromCmdLineArgs(args); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./util/ldb_cmd.h:56:22: note: candidate function not viable: requires 3 arguments, but 1 was provided static LDBCommand* InitFromCmdLineArgs( ^ ./util/ldb_cmd.h:62:22: note: candidate function not viable: requires 4 arguments, but 1 was provided static LDBCommand* InitFromCmdLineArgs( ^ 1 error generated. Test Plan: make reduce_levels_test ./reduce_levels_test Reviewers: haobo, ljin, sdong Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D19251 --- util/ldb_cmd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/ldb_cmd.h b/util/ldb_cmd.h index 50dcbf929..48075694c 100644 --- a/util/ldb_cmd.h +++ b/util/ldb_cmd.h @@ -55,15 +55,15 @@ public: static LDBCommand* InitFromCmdLineArgs( const vector& args, - const Options& options, - const LDBOptions& ldb_options + const Options& options = Options(), + const LDBOptions& ldb_options = LDBOptions() ); static LDBCommand* InitFromCmdLineArgs( int argc, char** argv, - const Options& options, - const LDBOptions& ldb_options + const Options& options = Options(), + const LDBOptions& ldb_options = LDBOptions() ); bool ValidateCmdLineOptions();