mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix compiler warnings
This commit is contained in:
parent
93bf2a1b3e
commit
83b1d4c364
2 changed files with 10 additions and 6 deletions
|
@ -93,10 +93,12 @@ game_makeNewGame( MPFORMAL XWGame* game, CurGameInfo* gi,
|
|||
#endif
|
||||
)
|
||||
{
|
||||
XP_U16 nPlayersHere, nPlayersTotal;
|
||||
|
||||
assertUtilOK( util );
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
XP_U16 nPlayersHere = 0;
|
||||
XP_U16 nPlayersTotal = 0;
|
||||
checkServerRole( gi, &nPlayersHere, &nPlayersTotal );
|
||||
#endif
|
||||
assertUtilOK( util );
|
||||
|
||||
gi->gameID = makeGameID( util );
|
||||
|
||||
|
@ -137,15 +139,17 @@ game_reset( MPFORMAL XWGame* game, CurGameInfo* gi,
|
|||
CommonPrefs* cp, const TransportProcs* procs )
|
||||
{
|
||||
XP_U16 ii;
|
||||
XP_U16 nPlayersHere, nPlayersTotal;
|
||||
|
||||
XP_ASSERT( !!game->model );
|
||||
XP_ASSERT( !!gi );
|
||||
|
||||
checkServerRole( gi, &nPlayersHere, &nPlayersTotal );
|
||||
gi->gameID = makeGameID( util );
|
||||
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
XP_U16 nPlayersHere = 0;
|
||||
XP_U16 nPlayersTotal = 0;
|
||||
checkServerRole( gi, &nPlayersHere, &nPlayersTotal );
|
||||
|
||||
if ( !!game->comms ) {
|
||||
if ( gi->serverRole == SERVER_STANDALONE ) {
|
||||
comms_destroy( game->comms );
|
||||
|
|
|
@ -686,7 +686,7 @@ handleRegistrationMsg( ServerCtxt* server, XWStreamCtxt* stream )
|
|||
{
|
||||
XP_Bool success = XP_TRUE;
|
||||
XP_U16 playersInMsg;
|
||||
XP_S8 clientIndex;
|
||||
XP_S8 clientIndex = 0; /* quiet compiler */
|
||||
XP_U16 ii = 0;
|
||||
LOG_FUNC();
|
||||
|
||||
|
|
Loading…
Reference in a new issue