Fix compile warnings about initialization order and unused variables
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 8 Jul 2011 11:32:34 +0000 (13:32 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 8 Jul 2011 11:32:34 +0000 (13:32 +0200)
src/command_server.hxx
src/connection.hxx
src/socket_server.hxx

index fb8bc0f..95dfe32 100644 (file)
@@ -56,7 +56,7 @@ class command_server
 
 template<class T, class B> 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
index d681ed8..f737559 100644 (file)
@@ -48,7 +48,7 @@ class connection
 
     protected:
         connection()
-            : callbacks(__events_end), closed(false)
+            : closed(false), callbacks(__events_end)
             { }
 
         std::string buffer;
index f3dd1c5..ae30833 100644 (file)
@@ -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();