mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
new UNUSED macro for keynav
This commit is contained in:
parent
eb32609a1d
commit
a37fab39e8
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue