From: Danny Al-Gaaf Date: Thu, 8 May 2014 07:38:28 +0000 (+0200) Subject: msg: fix some -Wextra-semi warnings X-Git-Tag: v0.81~45^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1214257af8a6e91f167583af04ce6e5f7868c473;p=ceph.git msg: fix some -Wextra-semi warnings Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/Dispatcher.h b/src/msg/Dispatcher.h index 864e9e1ed289..9b6a66115d91 100644 --- a/src/msg/Dispatcher.h +++ b/src/msg/Dispatcher.h @@ -100,7 +100,7 @@ public: * @param con The new Connection which has been established. You are not * granted a reference to it -- take one if you need one! */ - virtual void ms_handle_connect(Connection *con) { }; + virtual void ms_handle_connect(Connection *con) {} /** * This function will be called synchronously whenever a Connection is @@ -111,14 +111,14 @@ public: * @param con The new Connection which has been established. You are not * granted a reference to it -- take one if you need one! */ - virtual void ms_handle_fast_connect(Connection *con) { }; + virtual void ms_handle_fast_connect(Connection *con) {} /** * Callback indicating we have accepted an incoming connection. * * @param con The (new or existing) Connection associated with the session */ - virtual void ms_handle_accept(Connection *con) { }; + virtual void ms_handle_accept(Connection *con) {} /** * Callback indicating we have accepted an incoming connection, if you @@ -127,7 +127,7 @@ public: * * @param con The (new or existing) Connection associated with the session */ - virtual void ms_handle_fast_accept(Connection *con) { }; + virtual void ms_handle_fast_accept(Connection *con) {} /* * this indicates that the ordered+reliable delivery semantics have @@ -169,7 +169,7 @@ public: * * @return True if this function call properly filled in *a, false otherwise. */ - virtual bool ms_get_authorizer(int dest_type, AuthAuthorizer **a, bool force_new) { return false; }; + virtual bool ms_get_authorizer(int dest_type, AuthAuthorizer **a, bool force_new) { return false; } /** * Verify the authorizer for a new incoming Connection. * @@ -186,7 +186,7 @@ public: */ virtual bool ms_verify_authorizer(Connection *con, int peer_type, int protocol, bufferlist& authorizer, bufferlist& authorizer_reply, - bool& isvalid, CryptoKey& session_key) { return false; }; + bool& isvalid, CryptoKey& session_key) { return false; } /** * @} //Authentication */ diff --git a/src/msg/Message.h b/src/msg/Message.h index a69944f839c4..f3c9a4c8dca9 100644 --- a/src/msg/Message.h +++ b/src/msg/Message.h @@ -350,7 +350,7 @@ public: dispatch_throttle_size(0) { memset(&header, 0, sizeof(header)); memset(&footer, 0, sizeof(footer)); - }; + } Message(int t, int version=1, int compat_version=0) : connection(NULL), byte_throttler(NULL),