mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
fix warnings compiling in release mode
This commit is contained in:
parent
07912bdcdb
commit
c49408d7e9
1 changed files with 7 additions and 3 deletions
|
@ -403,7 +403,10 @@ do_nbs_then_close( CommonGlobals* cGlobals, const TransportProcs* procs )
|
|||
|
||||
/* Do I need this? Will reader get err if I close? */
|
||||
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) );
|
||||
|
||||
close( fd );
|
||||
|
@ -1013,8 +1016,9 @@ linuxFireTimer( CommonGlobals* cGlobals, XWTimerReason why )
|
|||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
static void
|
||||
linux_util_informMissing( XW_UtilCtxt* XP_UNUSED(uc),
|
||||
XP_Bool isServer, CommsConnType conType,
|
||||
XP_U16 nMissing )
|
||||
XP_Bool XP_UNUSED_DBG(isServer),
|
||||
CommsConnType XP_UNUSED_DBG(conType),
|
||||
XP_U16 XP_UNUSED_DBG(nMissing) )
|
||||
{
|
||||
XP_LOGF( "%s(isServer=%d, conType=%d, nMissing=%d)",
|
||||
__func__, isServer, conType, nMissing );
|
||||
|
|
Loading…
Add table
Reference in a new issue