From 1eed3f4c4e55d3e9f57a2dae5f71b76edb2bd4cf Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 8 Jul 2011 13:32:34 +0200 Subject: [PATCH] Fix compile warnings about initialization order and unused variables --- src/command_server.hxx | 2 +- src/connection.hxx | 2 +- src/socket_server.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command_server.hxx b/src/command_server.hxx index fb8bc0f..95dfe32 100644 --- a/src/command_server.hxx +++ b/src/command_server.hxx @@ -56,7 +56,7 @@ class command_server template struct Derived_from { static void constraints(T* p) { B* pb = p; } - Derived_from() { void(*p)(T*) = constraints; } + Derived_from() { void(*/*p*/)(T*) = constraints; } }; /** @brief server handling group of incoming commands diff --git a/src/connection.hxx b/src/connection.hxx index d681ed8..f737559 100644 --- a/src/connection.hxx +++ b/src/connection.hxx @@ -48,7 +48,7 @@ class connection protected: connection() - : callbacks(__events_end), closed(false) + : closed(false), callbacks(__events_end) { } std::string buffer; diff --git a/src/socket_server.hxx b/src/socket_server.hxx index f3dd1c5..ae30833 100644 --- a/src/socket_server.hxx +++ b/src/socket_server.hxx @@ -79,7 +79,7 @@ class socket_server_connection : public socket_handler, public server_connection private: socket_server_connection(int _sock, socket_type_value _stype, int _timeout) - : server_connection(_timeout), socket_handler(_sock,_stype) + : socket_handler(_sock,_stype), server_connection(_timeout) { } ~socket_server_connection(); -- 1.7.1