fix some warnings when building linux client without debugging but

with warnings as errors.
This commit is contained in:
ehouse 2009-09-20 21:51:29 +00:00
parent e8b372c274
commit a91fd28773
5 changed files with 8 additions and 6 deletions

View file

@ -737,7 +737,7 @@ makeRobotMove( ServerCtxt* server )
#ifdef XWFEATURE_SLOW_ROBOT #ifdef XWFEATURE_SLOW_ROBOT
static XP_Bool static XP_Bool
wakeRobotProc( void* closure, XWTimerReason why ) wakeRobotProc( void* closure, XWTimerReason XP_UNUSED_DBG(why) )
{ {
XP_ASSERT( TIMER_SLOWROBOT == why ); XP_ASSERT( TIMER_SLOWROBOT == why );
ServerCtxt* server = (ServerCtxt*)closure; ServerCtxt* server = (ServerCtxt*)closure;

View file

@ -18,13 +18,15 @@
ifeq ($(MEMDEBUG),TRUE) ifeq ($(MEMDEBUG),TRUE)
DEFINES = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DNUMBER_KEY_AS_INDEX 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 CFLAGS += -DDEBUG_TS
PLATFORM = obj_linux_memdbg PLATFORM = obj_linux_memdbg
else else
DEFINES = DEFINES =
PLATFORM = obj_linux_rel 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 endif
# CC = llvm-gcc # CC = llvm-gcc

View file

@ -507,7 +507,7 @@ linux_bt_receive( int sock, XP_U8* buf, XP_U16 buflen )
} }
void void
linux_bt_socketclosed( CommonGlobals* globals, int sock ) linux_bt_socketclosed( CommonGlobals* globals, int XP_UNUSED_DBG(sock) )
{ {
LinBtStuff* btStuff = globals->btStuff; LinBtStuff* btStuff = globals->btStuff;
LOG_FUNC(); LOG_FUNC();

View file

@ -93,7 +93,7 @@ countSpecials( LinuxDictionaryCtxt* ctxt )
} /* countSpecials */ } /* countSpecials */
static XP_Bitmap static XP_Bitmap
skipBitmap( LinuxDictionaryCtxt* ctxt, FILE* dictF ) skipBitmap( LinuxDictionaryCtxt* XP_UNUSED_DBG(ctxt), FILE* dictF )
{ {
XP_U8 nCols, nRows, nBytes; XP_U8 nCols, nRows, nBytes;
LinuxBMStruct* lbs = NULL; LinuxBMStruct* lbs = NULL;

View file

@ -54,7 +54,7 @@ linux_debugf( const char* format, ... )
#endif #endif
static DictionaryCtxt* static DictionaryCtxt*
linux_util_makeEmptyDict( XW_UtilCtxt* uctx ) linux_util_makeEmptyDict( XW_UtilCtxt* XP_UNUSED_DBG(uctx) )
{ {
XP_DEBUGF( "linux_util_makeEmptyDict called" ); XP_DEBUGF( "linux_util_makeEmptyDict called" );
return linux_dictionary_make( MPPARM(uctx->mpool) NULL ); return linux_dictionary_make( MPPARM(uctx->mpool) NULL );