fix so non-DEBUG build compiles

This commit is contained in:
Eric House 2014-03-04 07:07:01 -08:00
parent df771f50c4
commit 7002ff11c7
3 changed files with 9 additions and 3 deletions

View file

@ -133,8 +133,10 @@ handle_scan( GtkWidget* XP_UNUSED(widget), gpointer closure )
} else {
GSList* iter;
for ( iter = devNames; !!iter; iter = iter->next ) {
#ifdef DEBUG
gchar* name = iter->data;
XP_LOGF( "%s: got %s", __func__, name );
#endif
}
}
}

View file

@ -555,9 +555,9 @@ gtkNoticeRcvd( void* closure )
}
static void
smsInviteReceived( void* closure, const XP_UCHAR* gameName, XP_U32 gameID,
XP_U16 dictLang, const XP_UCHAR* dictName, XP_U16 nPlayers,
XP_U16 nHere, const CommsAddrRec* returnAddr )
smsInviteReceived( void* closure, const XP_UCHAR* XP_UNUSED_DBG(gameName),
XP_U32 gameID, XP_U16 dictLang, const XP_UCHAR* dictName,
XP_U16 nPlayers, XP_U16 nHere, const CommsAddrRec* returnAddr )
{
GtkAppGlobals* apg = (GtkAppGlobals*)closure;
LaunchParams* params = apg->params;

View file

@ -45,7 +45,9 @@ static ssize_t sendIt( RelayConStorage* storage, const XP_U8* msgbuf, XP_U16 len
static size_t addVLIStr( XP_U8* buf, size_t len, const XP_UCHAR* str );
static void getNetString( const XP_U8** ptr, XP_U16 len, XP_UCHAR* buf );
static XP_U16 getNetShort( const XP_U8** ptr );
#ifdef DEBUG
static XP_U32 getNetLong( const XP_U8** ptr );
#endif
static int writeHeader( RelayConStorage* storage, XP_U8* dest, XWRelayReg cmd );
static bool readHeader( const XP_U8** buf, MsgHeader* header );
static size_t writeDevID( XP_U8* buf, size_t len, const XP_UCHAR* str );
@ -389,6 +391,7 @@ getNetShort( const XP_U8** ptr )
return ntohs( result );
}
#ifdef DEBUG
static XP_U32
getNetLong( const XP_U8** ptr )
{
@ -397,6 +400,7 @@ getNetLong( const XP_U8** ptr )
*ptr += sizeof(result);
return ntohl( result );
}
#endif
static void
getNetString( const XP_U8** ptr, XP_U16 len, XP_UCHAR* buf )