diff options
| author | Po Lu | 2022-10-19 21:19:08 +0800 |
|---|---|---|
| committer | Po Lu | 2022-10-19 21:33:05 +0800 |
| commit | ccd0ad72f2fb2ccb96f826ecbefe495cb2bffc98 (patch) | |
| tree | d6982f105e8c35916fab41be036fc2fc10b56a6e /src/xterm.c | |
| parent | 084ac1e5147558b448af41fbfebc0a99a578819c (diff) | |
| download | emacs-ccd0ad72f2fb2ccb96f826ecbefe495cb2bffc98.tar.gz emacs-ccd0ad72f2fb2ccb96f826ecbefe495cb2bffc98.zip | |
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.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 3075b5af230..04247bc302d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -17940,7 +17940,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 17940 | GdkDisplay *gdpy = gdk_x11_lookup_xdisplay (dpyinfo->display); | 17940 | GdkDisplay *gdpy = gdk_x11_lookup_xdisplay (dpyinfo->display); |
| 17941 | #endif | 17941 | #endif |
| 17942 | int dx, dy; | 17942 | int dx, dy; |
| 17943 | |||
| 17944 | /* Avoid warnings when SAFE_ALLOCA is not actually used. */ | ||
| 17945 | #if defined HAVE_XINPUT2 || defined HAVE_XKB || defined HAVE_X_I18N | ||
| 17943 | USE_SAFE_ALLOCA; | 17946 | USE_SAFE_ALLOCA; |
| 17947 | #endif | ||
| 17944 | 17948 | ||
| 17945 | /* This function is not reentrant, so input should be blocked before | 17949 | /* This function is not reentrant, so input should be blocked before |
| 17946 | it is called. */ | 17950 | it is called. */ |
| @@ -24220,7 +24224,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 24220 | count++; | 24224 | count++; |
| 24221 | } | 24225 | } |
| 24222 | 24226 | ||
| 24227 | #if defined HAVE_XINPUT2 || defined HAVE_XKB || defined HAVE_X_I18N | ||
| 24223 | SAFE_FREE (); | 24228 | SAFE_FREE (); |
| 24229 | #endif | ||
| 24230 | |||
| 24224 | return count; | 24231 | return count; |
| 24225 | } | 24232 | } |
| 24226 | 24233 | ||