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: v17.1.0~233^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a32ae4b61ac4af244533ce53388411ca50fc1148;p=ceph.git rgw/amqp: add default case to silence compiler warning Fixes: https://tracker.ceph.com/issues/53252 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_amqp.cc b/src/rgw/rgw_amqp.cc index c76d514d86a77..6a11adf0692a1 100644 --- a/src/rgw/rgw_amqp.cc +++ b/src/rgw/rgw_amqp.cc @@ -322,8 +322,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