From: Stefan Kangas Date: Sat, 25 Dec 2021 15:41:06 +0000 (+0100) Subject: Fix unused variable warning in xfns.c X-Git-Tag: emacs-29.0.90~3455 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f43b3759d859177e6bce5d4e4cf0ba8d487d2b4;p=emacs.git Fix unused variable warning in xfns.c * src/xfns.c (Fx_server_input_version): Fix unused variable warning. --- diff --git a/src/xfns.c b/src/xfns.c index f911f9898a5..126e837b43c 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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);