]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix unused variable warning in xfns.c
authorStefan Kangas <stefan@marxist.se>
Sat, 25 Dec 2021 15:41:06 +0000 (16:41 +0100)
committerStefan Kangas <stefan@marxist.se>
Sat, 25 Dec 2021 15:41:06 +0000 (16:41 +0100)
* src/xfns.c (Fx_server_input_version): Fix unused variable
warning.

src/xfns.c

index f911f9898a5ffb5707e1cd49ab9b9a21acb85478..126e837b43cccb1363ea42a08b254b5f661af6e0 100644 (file)
@@ -4516,9 +4516,9 @@ major and minor versions of the X Input Extension extension running on
 that server.  */)
   (Lisp_Object terminal)
 {
+#ifdef HAVE_XINPUT2
   struct x_display_info *dpyinfo = check_x_display_info (terminal);
 
-#ifdef HAVE_XINPUT2
   return (dpyinfo->supports_xi2
          ? list2i (2, dpyinfo->xi2_version)
          : Qnil);