The branch, master has been updated
via 1eed3f4c4e55d3e9f57a2dae5f71b76edb2bd4cf (commit)
from 0f8ddc6cbdbd213e3bb00c41567e514fdeeed79d (commit)
- Log -----------------------------------------------------------------
commit 1eed3f4c4e55d3e9f57a2dae5f71b76edb2bd4cf
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Fri Jul 8 13:32:34 2011 +0200
Fix compile warnings about initialization order and unused variables
-----------------------------------------------------------------------
Summary of changes:
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<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
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();
hooks/post-receive
--
C++ inter-process communication library
--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|