fix warnings compiling in release mode

This commit is contained in:
Eric House 2012-08-12 19:37:47 -07:00
parent 07912bdcdb
commit c49408d7e9

View file

@ -403,7 +403,10 @@ do_nbs_then_close( CommonGlobals* cGlobals, const TransportProcs* procs )
/* Do I need this? Will reader get err if I close? */ /* Do I need this? Will reader get err if I close? */
unsigned short len = 0; unsigned short len = 0;
ssize_t nwritten = write( fd, &len, sizeof(len) ); #ifdef DEBUG
ssize_t nwritten =
#endif
write( fd, &len, sizeof(len) );
XP_ASSERT( nwritten == sizeof(len) ); XP_ASSERT( nwritten == sizeof(len) );
close( fd ); close( fd );
@ -1013,8 +1016,9 @@ linuxFireTimer( CommonGlobals* cGlobals, XWTimerReason why )
#ifndef XWFEATURE_STANDALONE_ONLY #ifndef XWFEATURE_STANDALONE_ONLY
static void static void
linux_util_informMissing( XW_UtilCtxt* XP_UNUSED(uc), linux_util_informMissing( XW_UtilCtxt* XP_UNUSED(uc),
XP_Bool isServer, CommsConnType conType, XP_Bool XP_UNUSED_DBG(isServer),
XP_U16 nMissing ) CommsConnType XP_UNUSED_DBG(conType),
XP_U16 XP_UNUSED_DBG(nMissing) )
{ {
XP_LOGF( "%s(isServer=%d, conType=%d, nMissing=%d)", XP_LOGF( "%s(isServer=%d, conType=%d, nMissing=%d)",
__func__, isServer, conType, nMissing ); __func__, isServer, conType, nMissing );