mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
fix some warnings when building linux client without debugging but
with warnings as errors.
This commit is contained in:
parent
e8b372c274
commit
a91fd28773
5 changed files with 8 additions and 6 deletions
|
@ -737,7 +737,7 @@ makeRobotMove( ServerCtxt* server )
|
|||
|
||||
#ifdef XWFEATURE_SLOW_ROBOT
|
||||
static XP_Bool
|
||||
wakeRobotProc( void* closure, XWTimerReason why )
|
||||
wakeRobotProc( void* closure, XWTimerReason XP_UNUSED_DBG(why) )
|
||||
{
|
||||
XP_ASSERT( TIMER_SLOWROBOT == why );
|
||||
ServerCtxt* server = (ServerCtxt*)closure;
|
||||
|
|
|
@ -18,13 +18,15 @@
|
|||
|
||||
ifeq ($(MEMDEBUG),TRUE)
|
||||
DEFINES = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DNUMBER_KEY_AS_INDEX
|
||||
CFLAGS += -g $(GPROFFLAG) -Wall -Wunused-parameter -Wcast-align -Werror
|
||||
CFLAGS += -g $(GPROFFLAG) -Wall -Wunused-parameter -Wcast-align -Werror -O0
|
||||
CFLAGS += -DDEBUG_TS
|
||||
PLATFORM = obj_linux_memdbg
|
||||
else
|
||||
DEFINES =
|
||||
PLATFORM = obj_linux_rel
|
||||
CFLAGS += -Os -Werror -Wunused
|
||||
# Not shipping this! Always build with symbols etc
|
||||
CFLAGS += -g $(GPROFFLAG) -Wall -Wunused-parameter -Wcast-align -Werror -O0
|
||||
#CFLAGS += -Os -Werror -Wunused
|
||||
endif
|
||||
|
||||
# CC = llvm-gcc
|
||||
|
|
|
@ -507,7 +507,7 @@ linux_bt_receive( int sock, XP_U8* buf, XP_U16 buflen )
|
|||
}
|
||||
|
||||
void
|
||||
linux_bt_socketclosed( CommonGlobals* globals, int sock )
|
||||
linux_bt_socketclosed( CommonGlobals* globals, int XP_UNUSED_DBG(sock) )
|
||||
{
|
||||
LinBtStuff* btStuff = globals->btStuff;
|
||||
LOG_FUNC();
|
||||
|
|
|
@ -93,7 +93,7 @@ countSpecials( LinuxDictionaryCtxt* ctxt )
|
|||
} /* countSpecials */
|
||||
|
||||
static XP_Bitmap
|
||||
skipBitmap( LinuxDictionaryCtxt* ctxt, FILE* dictF )
|
||||
skipBitmap( LinuxDictionaryCtxt* XP_UNUSED_DBG(ctxt), FILE* dictF )
|
||||
{
|
||||
XP_U8 nCols, nRows, nBytes;
|
||||
LinuxBMStruct* lbs = NULL;
|
||||
|
|
|
@ -54,7 +54,7 @@ linux_debugf( const char* format, ... )
|
|||
#endif
|
||||
|
||||
static DictionaryCtxt*
|
||||
linux_util_makeEmptyDict( XW_UtilCtxt* uctx )
|
||||
linux_util_makeEmptyDict( XW_UtilCtxt* XP_UNUSED_DBG(uctx) )
|
||||
{
|
||||
XP_DEBUGF( "linux_util_makeEmptyDict called" );
|
||||
return linux_dictionary_make( MPPARM(uctx->mpool) NULL );
|
||||
|
|
Loading…
Reference in a new issue