Fix g++-4 warnings
g0dil [Tue, 17 Oct 2006 08:12:20 +0000 (08:12 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@145 270642c3-0616-0410-b53a-bc976706d245

Socket/INetAddressing.cc
Socket/SocketPolicy.ct

index b2e8edf..013704d 100644 (file)
@@ -26,7 +26,7 @@
 //#include "INetAddressing.ih"
 
 // Custom includes
-#include <strstream>
+#include <sstream>
 #include <string.h>
 #include <sys/socket.h>
 #include <boost/lexical_cast.hpp>
index b2b2944..277dc81 100644 (file)
@@ -36,7 +36,7 @@ template < BOOST_PP_SEQ_FOR_EACH_I( SP_TemplateArgs, , SATLIB_SOCKET_POLICIES )
 prefix_ void satcom::lib::SocketPolicy< BOOST_PP_SEQ_FOR_EACH_I( SP_TemplateParams, , SATLIB_SOCKET_POLICIES ) >::
 checkBaseOf(SocketPolicyBase const & other)
 {
-#   define SP_CheckPolicy(x1,x2,SomePolicy) dynamic_cast<SomePolicy const &>(other.BOOST_PP_CAT(the,SomePolicy)());
+#   define SP_CheckPolicy(x1,x2,SomePolicy) (void) dynamic_cast<SomePolicy const &>(other.BOOST_PP_CAT(the,SomePolicy)());
     BOOST_PP_SEQ_FOR_EACH( SP_CheckPolicy, , SATLIB_SOCKET_POLICIES )
 #   undef SP_CheckPolicy
 }