Fix compile warnings about initialization order and unused variables
[libt2n] / src / command_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