From aa5d8e6d956250ef8f378662e4fb6eb95784dade Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 19 Feb 2015 16:42:22 -0800 Subject: [PATCH] table_test.cc: add missing 5th arg in TestArgs initializer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Adding -W and -Wextra to CXXFLAGS provoked this failure: table/table_test.cc:1854:56: error: missing initializer for member ‘rocksdb::TestArgs::format_version’ [-Werror=missing-field-initializers] TestArgs args = { DB_TEST, false, 16, kNoCompression }; ^ Add the missing, 5th value (format_version). Test Plan: Run "make EXTRA_CXXFLAGS='-W -Wextra'" and see fewer errors. Reviewers: ljin, sdong, igor.sugak, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D33765 --- table/table_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/table_test.cc b/table/table_test.cc index 31883c3c7..fba588510 100644 --- a/table/table_test.cc +++ b/table/table_test.cc @@ -1851,7 +1851,7 @@ TEST(Harness, Randomized) { TEST(Harness, RandomizedLongDB) { Random rnd(test::RandomSeed()); - TestArgs args = { DB_TEST, false, 16, kNoCompression }; + TestArgs args = { DB_TEST, false, 16, kNoCompression, 0 }; Init(args); int num_entries = 100000; for (int e = 0; e < num_entries; e++) {