From 0e24f97b9f75cd20622e5269a4b95e2347188119 Mon Sep 17 00:00:00 2001 From: kailiu Date: Thu, 12 Dec 2013 15:40:44 -0800 Subject: [PATCH] Revert last commit and add "unused" attribute to suppress warning --- db/db_test.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index a8d71e2f8..918126bbe 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -2596,7 +2596,6 @@ class ChangeFilter : public CompactionFilter { const Slice& value, std::string* new_value, bool* value_changed) const override { assert(argv_ == 100); - argv_ = argv_ + 0; assert(new_value != nullptr); *new_value = NEW_VALUE; *value_changed = true; @@ -2608,7 +2607,7 @@ class ChangeFilter : public CompactionFilter { } private: - const int argv_; + const int __attribute__((unused)) argv_; }; class KeepFilterFactory : public CompactionFilterFactory {