mark debug-only formals and wrap in #defines to fix compile-time

warnings of clean wince build.
This commit is contained in:
ehouse 2008-10-11 17:58:43 +00:00
parent 86fb79d969
commit ac5bbced8f
3 changed files with 11 additions and 6 deletions

View file

@ -138,7 +138,7 @@ static void tellMoveWasLegal( ServerCtxt* server );
#define PICK_NEXT -1 #define PICK_NEXT -1
#ifdef DEBUG #if defined DEBUG && ! defined XWFEATURE_STANDALONE_ONLY
static char* static char*
getStateStr( XW_State st ) getStateStr( XW_State st )
{ {

View file

@ -375,7 +375,8 @@ ceMakeBitmap( CEDictionaryCtxt* XP_UNUSED_DBG(ctxt), XP_U8** ptrp )
} /* ceMakeBitmap */ } /* ceMakeBitmap */
static void static void
ceDeleteBitmap( const CEDictionaryCtxt* ctxt, XP_Bitmap* bitmap ) ceDeleteBitmap( const CEDictionaryCtxt* XP_UNUSED_DBG(ctxt),
XP_Bitmap* bitmap )
{ {
if ( !!bitmap ) { if ( !!bitmap ) {
CEBitmapInfo* bmi = (CEBitmapInfo*)bitmap; CEBitmapInfo* bmi = (CEBitmapInfo*)bitmap;
@ -715,7 +716,7 @@ matchShortName( const wchar_t* wPath, XP_U16 XP_UNUSED(index), void* ctxt )
* look. * look.
*/ */
static XP_Bool static XP_Bool
findAlternateDict( CEAppGlobals* globals, wchar_t* path ) findAlternateDict( CEAppGlobals* XP_UNUSED_DBG(globals), wchar_t* path )
{ {
wchar_t shortPath[CE_MAX_PATH_LEN+1]; wchar_t shortPath[CE_MAX_PATH_LEN+1];
FindOneData data; FindOneData data;
@ -724,7 +725,8 @@ findAlternateDict( CEAppGlobals* globals, wchar_t* path )
data.sought = wbname( shortPath, sizeof(shortPath), path ); data.sought = wbname( shortPath, sizeof(shortPath), path );
data.result = path; data.result = path;
(void)ceLocateNDicts( MPPARM(globals->mpool) CE_MAXDICTS, matchShortName, &data ); (void)ceLocateNDicts( MPPARM(globals->mpool) CE_MAXDICTS, matchShortName,
&data );
return data.found; return data.found;
} /* findAlternateDict */ } /* findAlternateDict */

View file

@ -52,11 +52,14 @@ ceFileExists( const wchar_t* name )
} }
static void static void
makeUniqueName( wchar_t* buf, XP_U16 bufLen ) makeUniqueName( wchar_t* buf, XP_U16 XP_UNUSED_DBG(bufLen) )
{ {
XP_U16 ii; XP_U16 ii;
for ( ii = 1; ii < 100; ++ii ) { for ( ii = 1; ii < 100; ++ii ) {
int len = swprintf( buf, L"Untitled%d", ii ); #ifdef DEBUG
int len =
#endif
swprintf( buf, L"Untitled%d", ii );
XP_ASSERT( len < bufLen ); XP_ASSERT( len < bufLen );
if ( !ceFileExists( buf ) ) { if ( !ceFileExists( buf ) ) {
break; break;