]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/amqp: add default case to silence compiler warning 44323/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 15 Dec 2021 16:07:49 +0000 (11:07 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 15 Dec 2021 17:27:03 +0000 (12:27 -0500)
Fixes: https://tracker.ceph.com/issues/53252
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_amqp.cc

index c76d514d86a776661b9dfd4aa3a1629626e45d14..6a11adf0692a18bb5626dfa893973a9746a3860f 100644 (file)
@@ -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