fix unused var warning in release build

This commit is contained in:
ehouse 2009-12-17 13:09:10 +00:00
parent 81d41a621f
commit 28265749f9
2 changed files with 6 additions and 4 deletions

View file

@ -1401,13 +1401,15 @@ positionSizeStuff( CursesAppGlobals* globals, int width, int height )
} /* positionSizeStuff */
static void
relay_status_curses( void* XP_UNUSED(closure), CommsRelayState state )
relay_status_curses( void* XP_UNUSED(closure),
CommsRelayState XP_UNUSED_DBG(state) )
{
XP_LOGF( "%s got status: %s", __func__, CommsRelayState2Str(state) );
}
static void
relay_connd_curses( void* XP_UNUSED(closure), XP_Bool allHere, XP_U16 nMissing )
relay_connd_curses( void* XP_UNUSED(closure), XP_Bool XP_UNUSED_DBG(allHere),
XP_U16 XP_UNUSED_DBG(nMissing) )
{
XP_LOGF( "%s got allHere: %d; nMissing: %d", __func__, allHere, nMissing );
}

View file

@ -318,8 +318,8 @@ relay_connd_gtk( void* closure, XP_Bool allHere, XP_U16 nMissing )
snprintf( buf, sizeof(buf), "Connected to relay as host; waiting "
"for %d player[s].", nMissing );
} else if ( nMissing > 0 ) {
snprintf( buf, sizeof(buf), "Connected to relay as guest. Still waiting "
"for %d player[s].", nMissing );
snprintf( buf, sizeof(buf), "Connected to relay as guest. Still "
"waiting for %d player[s].", nMissing );
} else {
/* an allHere message should be coming immediately, so no
notification now. */