From: Ronen Friedman Date: Sun, 3 Mar 2024 14:30:59 +0000 (+0200) Subject: common: fix string creation from '0' in LogEntry X-Git-Tag: v19.1.1~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58890%2Fhead;p=ceph.git 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 (cherry picked from commit b854bfcc70ff372cd087c068e0302d36ad86391f) Signed-off-by: Matan Breizman --- diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index d7b44a2110bd..7bb49432268b 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; } }