]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix unused variables on GTK
authorPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 02:17:12 +0000 (10:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 02:17:12 +0000 (10:17 +0800)
* src/xterm.c (x_wait_for_cell_change): Fix unused variables
on GTK builds.

src/xterm.c

index 29991de21deeaa8f02996922e6d497654ca61a38..8d2365a5c3c71f9b26c749c8fe159cb32342cf22 100644 (file)
@@ -14843,8 +14843,11 @@ x_wait_for_cell_change (Lisp_Object cell, struct timespec timeout)
 {
   struct x_display_info *dpyinfo;
   fd_set fds;
-  int fd, maxfd, finish;
+  int fd, maxfd;
+#ifndef USE_GTK
+  int finish;
   XEvent event;
+#endif
   struct input_event hold_quit;
   struct timespec current, at;