From: Casey Bodley Date: Wed, 15 Dec 2021 16:07:49 +0000 (-0500) Subject: rgw/amqp: add default case to silence compiler warning X-Git-Tag: v15.2.17~62^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ffbcae39eb053f095fe2ed922df445428e6b10ca;p=ceph.git 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) --- diff --git a/src/rgw/rgw_amqp.cc b/src/rgw/rgw_amqp.cc index ff30a7841d57..1b514a60c5e1 100644 --- a/src/rgw/rgw_amqp.cc +++ b/src/rgw/rgw_amqp.cc @@ -314,8 +314,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