From 9f2d1d328a4f81fbf84821f5701c6a18046a4c07 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 15 Dec 2021 11:07:49 -0500 Subject: [PATCH] rgw/amqp: add default case to silence compiler warning Fixes: https://tracker.ceph.com/issues/53252 Signed-off-by: Casey Bodley (cherry picked from commit a32ae4b61ac4af244533ce53388411ca50fc1148) --- src/rgw/rgw_amqp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_amqp.cc b/src/rgw/rgw_amqp.cc index 7a1b9df50619b..218a18b09d812 100644 --- a/src/rgw/rgw_amqp.cc +++ b/src/rgw/rgw_amqp.cc @@ -321,8 +321,9 @@ std::string to_string(amqp_status_enum s) { return "AMQP_STATUS_SSL_CONNECTION_FAILED"; case _AMQP_STATUS_SSL_NEXT_VALUE: return "AMQP_STATUS_INTERNAL"; + default: + return "AMQP_STATUS_UNKNOWN"; } - return "AMQP_STATUS_UNKNOWN"; } // TODO: add status_to_string on the connection object to prinf full status -- 2.39.5