Skip to content

Commit bf648d2

Browse files
committed
Fix compilation for db_bench target
1 parent a7a441a commit bf648d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/db_bench_tool.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,14 +1289,14 @@ ROCKSDB_NAMESPACE::Env* CreateAwsEnv(
12891289
return s;
12901290
}
12911291

1292-
static const auto& s3_reg =
1292+
static const auto& s3_reg __attribute__((__unused__)) =
12931293
ROCKSDB_NAMESPACE::ObjectLibrary::Default()
12941294
-> Register<ROCKSDB_NAMESPACE::Env>(
12951295
"s3://.*", [](const std::string& uri,
1296-
std::unique_ptr<ROCKSDB_NAMESPACE::Env>* env_guard,
1296+
std::unique_ptr<ROCKSDB_NAMESPACE::Env>* guard,
12971297
std::string*) {
1298-
CreateAwsEnv(uri, env_guard);
1299-
return env_guard->get();
1298+
CreateAwsEnv(uri, guard);
1299+
return guard->get();
13001300
});
13011301
#endif /* USE_AWS */
13021302

0 commit comments

Comments
 (0)