]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools: add std:: qualifiers to 'move'
authorRonen Friedman <rfriedma@redhat.com>
Sat, 23 Sep 2023 06:06:14 +0000 (01:06 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sat, 23 Sep 2023 06:13:47 +0000 (01:13 -0500)
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 <rfriedma@redhat.com>
src/tools/ceph_dedup_tool.cc

index f3c942a976044e64db7e17c4c817072e96a017f4..b0d3602a93630aa85e1d9af0372958fea5248745 100644 (file)
@@ -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();
 
@@ -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();