]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async: resolve gcc warning
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 5 Apr 2019 22:57:31 +0000 (15:57 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 5 Apr 2019 22:57:31 +0000 (15:57 -0700)
    /home/pdonnell/ceph/src/msg/async/ProtocolV2.cc: In member function ‘Ct<ProtocolV2>* ProtocolV2::handle_auth_signature(ceph::bufferlist&)’:
    /home/pdonnell/ceph/src/msg/async/ProtocolV2.cc:2259:1: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/msg/async/ProtocolV2.cc

index 5098288946547936dbbc59be0ef858eb205519ca..112bbf2b21e436f8b424078a93b18edeaa379dc9 100644 (file)
@@ -2254,7 +2254,7 @@ CtPtr ProtocolV2::handle_auth_signature(ceph::bufferlist &payload)
     // this happened at client side
     return finish_client_auth();
   } else {
-    ceph_assert_always("state corruption" == nullptr);
+    ceph_abort("state corruption");
   }
 }