mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 14:11:38 -08:00
Fix build warning without XKB, Xmb, and XInput 2
* src/xterm.c (handle_one_xevent): Avoid defining USE_SAFE_ALLOCA when SAFE_ALLOCA is not actually used.
This commit is contained in:
parent
084ac1e514
commit
ccd0ad72f2
1 changed files with 7 additions and 0 deletions
|
|
@ -17940,7 +17940,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
GdkDisplay *gdpy = gdk_x11_lookup_xdisplay (dpyinfo->display);
|
||||
#endif
|
||||
int dx, dy;
|
||||
|
||||
/* Avoid warnings when SAFE_ALLOCA is not actually used. */
|
||||
#if defined HAVE_XINPUT2 || defined HAVE_XKB || defined HAVE_X_I18N
|
||||
USE_SAFE_ALLOCA;
|
||||
#endif
|
||||
|
||||
/* This function is not reentrant, so input should be blocked before
|
||||
it is called. */
|
||||
|
|
@ -24220,7 +24224,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
count++;
|
||||
}
|
||||
|
||||
#if defined HAVE_XINPUT2 || defined HAVE_XKB || defined HAVE_X_I18N
|
||||
SAFE_FREE ();
|
||||
#endif
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue