diff --git a/fairmq/ofi/Socket.cxx b/fairmq/ofi/Socket.cxx index c5ea18a1..9c44ddaf 100644 --- a/fairmq/ofi/Socket.cxx +++ b/fairmq/ofi/Socket.cxx @@ -284,7 +284,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::SendQueueReader() -> void @@ -431,7 +431,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::Receive(std::vector& msgVec, const int /*timeout*/) -> int64_t @@ -456,7 +456,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::RecvControlQueueReader() -> void