Skip to content

Commit

Permalink
tools: add std:: qualifiers to 'move'
Browse files Browse the repository at this point in the history
to silence compiler warnings.
e.g. (ceph_dedup_tool.cc:1104:32: warning: unqualified call to
'std::move' [-Wunqualified-std-cast-call]
     estimate_threads.push_back(move(ptr));
                               ^
                               std::

Signed-off-by: Ronen Friedman <[email protected]>
  • Loading branch information
ronen-fr committed Sep 23, 2023
1 parent 5ecd20f commit 3e9269f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/ceph_dedup_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ int estimate_dedup_ratio(const po::variables_map &opts)
max_seconds));
ptr->create("estimate_thread");
ptr->set_debug(debug);
estimate_threads.push_back(move(ptr));
estimate_threads.push_back(std::move(ptr));
}
glock.unlock();

Expand Down Expand Up @@ -1319,7 +1319,7 @@ int chunk_scrub_common(const po::variables_map &opts)
new ChunkScrub(io_ctx, i, max_thread, begin, end, chunk_io_ctx,
report_period, s.num_objects));
ptr->create("estimate_thread");
estimate_threads.push_back(move(ptr));
estimate_threads.push_back(std::move(ptr));
}
glock.unlock();

Expand Down

0 comments on commit 3e9269f

Please sign in to comment.