cleanup/fix compiler warning

This commit is contained in:
Eric House 2022-07-07 06:15:52 -07:00
parent 9e835b90bf
commit 882c717add
2 changed files with 5 additions and 5 deletions

View file

@ -2430,8 +2430,8 @@ dupe_trayAllowsMoves( ServerCtxt* server, XWEnv xwe, XP_U16 turn,
{
ModelCtxt* model = server->vol.model;
XP_U16 nInTray = model_getNumTilesInTray( model, turn );
XP_LOGF( "%s(nTiles=%d): nInTray: %d", __func__, nTiles, nInTray );
XP_ASSERT( nInTray + nTiles <= MAX_TRAY_TILES ); /* fired! */
XP_LOGFF( "(nTiles=%d): nInTray: %d", nTiles, nInTray );
XP_ASSERT( nInTray + nTiles <= MAX_TRAY_TILES ); /* fired again! */
Tile tmpTiles[MAX_TRAY_TILES];
const TrayTileSet* tray = model_getPlayerTiles( model, turn );
XP_MEMCPY( tmpTiles, &tray->tiles[0], nInTray * sizeof(tmpTiles[0]) );
@ -2457,9 +2457,9 @@ dupe_trayAllowsMoves( ServerCtxt* server, XWEnv xwe, XP_U16 turn,
&& canMove;
if ( result ) {
XP_LOGF( "%s(): first move found has score of %d", __func__, score );
XP_LOGFF( "first move found has score of %d", score );
} else {
XP_LOGF( "%s(): no moves found for tray!!!", __func__ );
XP_LOGFF( "no moves found for tray!!!" );
}
if ( !!tmpEngine ) {

View file

@ -102,7 +102,7 @@ linux_dutil_onInviteReceived( XW_DUtilCtxt* duc, XWEnv XP_UNUSED(xwe),
static void
linux_dutil_onMessageReceived( XW_DUtilCtxt* duc, XWEnv XP_UNUSED(xwe),
XP_U32 gameID, const CommsAddrRec* from,
XP_U8* buf, XP_U16 len )
const XP_U8* buf, XP_U16 len )
{
XP_LOGFF( "(gameID=%d)", gameID );
LaunchParams* params = (LaunchParams*)duc->closure;