# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1206746808 -3600
# Node ID cefdb01ef83cf49d430e7f0f8c13b325676b405e
# Parent 7c1d0567f3d9c23c2ed9f8c3f881c8dc010f932f
fix compiler warnings
diff -r 7c1d0567f3d9 -r cefdb01ef83c wifo/netlib/src/stun_func.cpp
--- a/wifo/netlib/src/stun_func.cpp Sat Mar 29 00:26:07 2008 +0100
+++ b/wifo/netlib/src/stun_func.cpp Sat Mar 29 00:26:48 2008 +0100
@@ -91,7 +91,7 @@
#ifdef DEBUG_STUN
#define LOG(x) clog << __FILE__ << ":" << __LINE__ << ": " << x
#else
-#define LOG(x)
+#define LOG(x) do {} while(0);
#endif
using namespace std;
@@ -1228,7 +1228,9 @@ stunTest( StunAddress4& dest, int testNu
memset(&resp, 0, sizeof(StunMessage));
if ( verbose ) LOG("Got a response" << endl);
+#ifdef DEBUG_STUN
bool ok = stunParseMessage( msg,msgLen, resp,verbose );
+#endif
if ( verbose )
{
@@ -1330,7 +1332,9 @@ NatType stunNatType(StunAddress4& dest,
if ( err == SOCKET_ERROR )
{
// error occured
+#ifdef DEBUG_STUN
int e = getErrno();
+#endif
LOG("Error " << e << " " << strerror(e) << " in select" << endl);
return StunTypeFailure;
}
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel