From 28265749f9f8015ac1d6560c4e1077ae7551d778 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 17 Dec 2009 13:09:10 +0000 Subject: [PATCH] fix unused var warning in release build --- xwords4/linux/cursesmain.c | 6 ++++-- xwords4/linux/gtkmain.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/xwords4/linux/cursesmain.c b/xwords4/linux/cursesmain.c index 5fd40a61a..7516d6741 100644 --- a/xwords4/linux/cursesmain.c +++ b/xwords4/linux/cursesmain.c @@ -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 ); } diff --git a/xwords4/linux/gtkmain.c b/xwords4/linux/gtkmain.c index 8f80448cf..a0ebe1ee5 100644 --- a/xwords4/linux/gtkmain.c +++ b/xwords4/linux/gtkmain.c @@ -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. */