From 6970ab6837e8d186a0cbab25cec946de2c5dafbb Mon Sep 17 00:00:00 2001 From: Matthieu Bec Date: Wed, 24 May 2017 10:25:29 -0700 Subject: [PATCH] Fix warnings revealed by clang --- src/client/binary_client.cpp | 3 +-- src/server/endpoints_registry.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/binary_client.cpp b/src/client/binary_client.cpp index aa54b4f9..4c0f253e 100644 --- a/src/client/binary_client.cpp +++ b/src/client/binary_client.cpp @@ -848,7 +848,7 @@ namespace } } - ResponseHeader parseMessage(std::size_t &dataSize, NodeId &id) + void parseMessage(std::size_t &dataSize, NodeId &id) { std::vector buffer(dataSize); BufferInputChannel bufferInput(buffer); @@ -876,7 +876,6 @@ namespace } messageBuffer.insert(messageBuffer.end(), buffer.begin(), buffer.end()); - return header; } else { diff --git a/src/server/endpoints_registry.cpp b/src/server/endpoints_registry.cpp index 288d1ef3..41669177 100644 --- a/src/server/endpoints_registry.cpp +++ b/src/server/endpoints_registry.cpp @@ -57,7 +57,6 @@ namespace private: Server::ServicesRegistry::SharedPtr InternalServer; - bool Debug; std::vector Endpoints; std::vector Applications;