From c7a25c29dd73808626c85a03fdee7c1d9f266c0f Mon Sep 17 00:00:00 2001
From: Axel Naumann <Axel.Naumann@cern.ch>
Date: Mon, 29 Jan 2018 09:36:57 +0100
Subject: [PATCH] Help older GCC, we want to return a converted local.

---
 core/thread/src/TReentrantRWLock.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/thread/src/TReentrantRWLock.cxx b/core/thread/src/TReentrantRWLock.cxx
index f150fccffc5..361f4689479 100644
--- a/core/thread/src/TReentrantRWLock.cxx
+++ b/core/thread/src/TReentrantRWLock.cxx
@@ -320,7 +320,7 @@ TReentrantRWLock<MutexT, RecurseCountsT>::Rewind(const State &earlierState) {
    }
    // else earlierState and *this are identical!
 
-   return pStateDelta;
+   return std::unique_ptr<TVirtualRWMutex::StateDelta>(std::move(pStateDelta));
 }
 
 //////////////////////////////////////////////////////////////////////////
-- 
GitLab