This is an automated email from the ASF dual-hosted git repository.

hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 030d15ef Fix build warnings that local variable 's' will be copied 
despite being returned by name (#2148)
030d15ef is described below

commit 030d15ef289517226703087997f1394016e63cd8
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Sun Mar 10 16:30:41 2024 +0200

    Fix build warnings that local variable 's' will be copied despite being 
returned by name (#2148)
---
 src/cluster/replication.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cluster/replication.cc b/src/cluster/replication.cc
index 51e536c7..4df05a47 100644
--- a/src/cluster/replication.cc
+++ b/src/cluster/replication.cc
@@ -75,7 +75,7 @@ Status FeedSlaveThread::Start() {
     conn_ = nullptr;  // prevent connection was freed when failed to start the 
thread
   }
 
-  return s;
+  return std::move(s);
 }
 
 void FeedSlaveThread::Stop() {

Reply via email to