Cleanup: compile warning and to make logging easier.

This commit is contained in:
ehouse 2007-02-08 15:17:23 +00:00
parent b1d4a800c8
commit c0b515457b
2 changed files with 9 additions and 3 deletions

View file

@ -2810,12 +2810,16 @@ board_handleKeyUp( BoardCtxt* board, XP_Key key, XP_Bool* pHandled )
XP_Bool XP_Bool
board_handleKey( BoardCtxt* board, XP_Key key, XP_Bool* handled ) board_handleKey( BoardCtxt* board, XP_Key key, XP_Bool* handled )
{ {
XP_Bool handled1, handled2; XP_Bool handled1;
XP_Bool draw = board_handleKeyDown( board, key, &handled1 ); XP_Bool handled2;
XP_Bool draw;
draw = board_handleKeyDown( board, key, &handled1 );
draw = board_handleKeyUp( board, key, &handled2 ) || draw; draw = board_handleKeyUp( board, key, &handled2 ) || draw;
*handled = handled1 || handled2; *handled = handled1 || handled2;
return draw; return draw;
} } /* board_handleKey */
#endif /* KEY_SUPPORT */ #endif /* KEY_SUPPORT */
#ifdef KEYBOARD_NAV #ifdef KEYBOARD_NAV

View file

@ -720,7 +720,9 @@ sendMsg( CommsCtxt* comms, MsgQueueElem* elem )
{ {
XP_S16 result = 0; XP_S16 result = 0;
XP_PlayerAddr channelNo; XP_PlayerAddr channelNo;
#if defined XWFEATURE_RELAY || defined XWFEATURE_BLUETOOTH
CommsConnType conType = comms_getConType( comms ); CommsConnType conType = comms_getConType( comms );
#endif
channelNo = elem->channelNo; channelNo = elem->channelNo;