Skip to content

Commit

Permalink
crimson: eliminate warning for unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: chunmei-liu <[email protected]>
  • Loading branch information
chunmei-liu committed Jan 26, 2022
1 parent dcf86e7 commit b398698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/crimson/seastar_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct SeastarRunner {
on_end.reset(new seastar::readable_eventfd);
return seastar::now().then([this] {
begin_signaled = true;
auto r = ::eventfd_write(begin_fd.get(), APP_RUNNING);
[[maybe_unused]] auto r = ::eventfd_write(begin_fd.get(), APP_RUNNING);
assert(r == 0);
return seastar::now();
}).then([this] {
Expand Down
2 changes: 1 addition & 1 deletion src/test/crimson/seastore/onode_tree/test_staged_fltree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ class DummyChildPool {
EXPECT_EQ(pool_clone.p_dummy->size(), 3);

// erase and merge
auto pivot_key = node_to_split->get_pivot_key();
[[maybe_unused]] auto pivot_key = node_to_split->get_pivot_key();
logger().info("\n\nERASE-MERGE {}:", node_to_split->get_name());
assert(pivot_key.compare_to(key_hobj_t(key)) == MatchKindCMP::EQ);
with_trans_intr(pool_clone.get_context().t, [&] (auto &t) {
Expand Down

0 comments on commit b398698

Please sign in to comment.