From: g0dil Date: Tue, 17 Oct 2006 08:12:20 +0000 (+0000) Subject: Fix g++-4 warnings X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=9ff0a749115d3424608d7b077037258481c0086c;p=senf.git Fix g++-4 warnings git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@145 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/INetAddressing.cc b/Socket/INetAddressing.cc index b2e8edf..013704d 100644 --- a/Socket/INetAddressing.cc +++ b/Socket/INetAddressing.cc @@ -26,7 +26,7 @@ //#include "INetAddressing.ih" // Custom includes -#include +#include #include #include #include diff --git a/Socket/SocketPolicy.ct b/Socket/SocketPolicy.ct index b2b2944..277dc81 100644 --- a/Socket/SocketPolicy.ct +++ b/Socket/SocketPolicy.ct @@ -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(other.BOOST_PP_CAT(the,SomePolicy)()); +# define SP_CheckPolicy(x1,x2,SomePolicy) (void) dynamic_cast(other.BOOST_PP_CAT(the,SomePolicy)()); BOOST_PP_SEQ_FOR_EACH( SP_CheckPolicy, , SATLIB_SOCKET_POLICIES ) # undef SP_CheckPolicy }