From b854bfcc70ff372cd087c068e0302d36ad86391f Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Sun, 3 Mar 2024 16:30:59 +0200 Subject: [PATCH] common: fix string creation from '0' in LogEntry C++23 disallows conversion from 'int' to 'string'. That includes returning '0' from a function that returns a string. Signed-off-by: Ronen Friedman --- src/common/LogEntry.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index d7b44a2110b..7bb49432268 100644 --- a/src/common/LogEntry.cc +++ b/src/common/LogEntry.cc @@ -183,7 +183,6 @@ string clog_type_to_string(clog_type t) return "crit"; default: ceph_abort(); - return 0; } } -- 2.39.5