]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix string creation from '0' in LogEntry 58890/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 3 Mar 2024 14:30:59 +0000 (16:30 +0200)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 28 Jul 2024 10:40:57 +0000 (13:40 +0300)
C++23 disallows conversion from 'int' to 'string'.
That includes returning '0' from a function that returns a string.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit b854bfcc70ff372cd087c068e0302d36ad86391f)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/common/LogEntry.cc

index d7b44a2110bd4fc4beb2c7ae543c3d3f1e9b3c56..7bb49432268bb41e618b350d420bb2fc88a548e3 100644 (file)
@@ -183,7 +183,6 @@ string clog_type_to_string(clog_type t)
       return "crit";
     default:
       ceph_abort();
-      return 0;
   }
 }