fix compilation where DEBUG not set

This commit is contained in:
Eric House 2020-04-26 13:49:54 -07:00
parent 9fa23af6e0
commit 182b8e0489
4 changed files with 13 additions and 9 deletions

View file

@ -235,7 +235,7 @@ static void logAddrs( const CommsCtxt* comms, XWEnv xwe,
# else
# define printQueue( comms )
# define logAddr( comms, addr, caller)
# define logAddr( comms, xwe, addr, caller)
# define logAddrs( comms, caller )
# endif
#endif
@ -420,7 +420,7 @@ cleanupAddrRecs( CommsCtxt* comms )
} /* cleanupAddrRecs */
static void
removeAddrRec( CommsCtxt* comms, XWEnv xwe, AddressRecord* rec )
removeAddrRec( CommsCtxt* comms, XWEnv XP_UNUSED_DBG(xwe), AddressRecord* rec )
{
XP_LOGF( TAGFMT(%p), TAGPRMS, rec );
#ifdef DEBUG
@ -891,8 +891,8 @@ addrToStream( XWStreamCtxt* stream, const CommsAddrRec* addrP )
}
void
comms_writeToStream( CommsCtxt* comms, XWEnv xwe, XWStreamCtxt* stream,
XP_U16 saveToken )
comms_writeToStream( CommsCtxt* comms, XWEnv XP_UNUSED_DBG(xwe),
XWStreamCtxt* stream, XP_U16 saveToken )
{
XP_U16 nAddrRecs;
AddressRecord* rec;
@ -1023,7 +1023,8 @@ comms_augmentHostAddr( CommsCtxt* comms, XWEnv xwe, const CommsAddrRec* addr )
} /* comms_setHostAddr */
void
comms_getAddrs( const CommsCtxt* comms, XWEnv xwe, CommsAddrRec addr[], XP_U16* nRecs )
comms_getAddrs( const CommsCtxt* comms, XWEnv XP_UNUSED_DBG(xwe),
CommsAddrRec addr[], XP_U16* nRecs )
{
AddressRecord* recs;
XP_U16 count;
@ -3030,7 +3031,7 @@ addr_setType( CommsAddrRec* addr, CommsConnType type )
#ifdef XWFEATURE_RELAY
static XWHostID
getDestID( CommsCtxt* comms, XWEnv xwe, XP_PlayerAddr channelNo )
getDestID( CommsCtxt* comms, XWEnv XP_UNUSED_DBG(xwe), XP_PlayerAddr channelNo )
{
XWHostID id = HOST_ID_NONE;
XP_Bool missingRelay = XP_FALSE;

View file

@ -239,13 +239,16 @@ void model_makeTurnFromMoveInfo( ModelCtxt* model, XWEnv xwe, XP_U16 playerNum,
#ifdef DEBUG
void juggleMoveIfDebug( MoveInfo* move );
void reverseTiles( MoveInfo* move );
void model_dumpSelf( const ModelCtxt* model, const XP_UCHAR* msg );
#else
# define juggleMoveIfDebug(newMove)
# define model_dumpSelf( model, msg )
#endif
#ifdef XWFEATURE_ROBOTPHONIES
void reverseTiles( MoveInfo* move );
#endif
void model_resetCurrentTurn( ModelCtxt* model, XWEnv xwe, XP_S16 turn );
XP_S16 model_getNMoves( const ModelCtxt* model );

View file

@ -114,7 +114,7 @@ static void freeRec( SMSProto* state, ToPhoneRec* rec );
static void logResult( const SMSProto* state, XWEnv xwe,
const SMSMsgArray* result, const char* caller );
#else
# define logResult( state, result, caller )
# define logResult( state, xwe, result, caller )
#endif
SMSProto*

View file

@ -105,6 +105,6 @@ void smsproto_freeMsgArray( SMSProto* state, SMSMsgArray* arr );
# ifdef DEBUG
void smsproto_runTests( MPFORMAL XWEnv xwe, XW_DUtilCtxt* dutil );
# else
# define smsproto_runTests( p1, p2 )
# define smsproto_runTests(p1,p2,p3 )
# endif
#endif