new UNUSED macro for keynav

This commit is contained in:
ehouse 2006-11-12 15:20:36 +00:00
parent eb32609a1d
commit a37fab39e8
2 changed files with 9 additions and 2 deletions

View file

@ -1776,7 +1776,7 @@ board_requestHint( BoardCtxt* board,
static XP_Bool
drawCell( BoardCtxt* board, XP_U16 col, XP_U16 row, XP_Bool skipBlanks,
XP_Bool cellFocused )
XP_Bool XP_UNUSED_KEYBOARD_NAV(cellFocused) )
{
XP_Rect cellRect;
Tile tile;
@ -2986,7 +2986,8 @@ advanceArrow( BoardCtxt* board )
} /* advanceArrow */
static XP_Bool
figureNextLoc( BoardCtxt* board, XP_Key cursorKey, XP_Bool canShiftFocus,
figureNextLoc( BoardCtxt* board, XP_Key cursorKey,
XP_Bool XP_UNUSED_KEYBOARD_NAV(canShiftFocus),
XP_Bool inclPending, XP_U16* colP, XP_U16* rowP )
{
XP_S16 max;

View file

@ -204,4 +204,10 @@ typedef struct CommonPrefs {
# define XP_UNUSED_BT(x) UNUSED__ ## x __attribute__((unused))
#endif
#ifdef KEYBOARD_NAV
# define XP_UNUSED_KEYBOARD_NAV(x) x
#else
# define XP_UNUSED_KEYBOARD_NAV(x) UNUSED__ ## x __attribute__((unused))
#endif
#endif