]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify unused variable warning in xterm.c
authorBasil L. Contovounesios <contovob@tcd.ie>
Sat, 11 Dec 2021 09:47:55 +0000 (11:47 +0200)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sat, 11 Dec 2021 09:57:53 +0000 (11:57 +0200)
* src/xterm.c (handle_one_xevent) <GenericEvent> [HAVE_XINPUT2]: The
variable any_stop_p is used only when HAVE_XWIDGETS, so guard its
declaration accordingly to pacify GCC's -Wunused-variable warning.

src/xterm.c

index ae0daa79f31589fd5c11b182e77ee6a31b24283d..41aa2b268c1a2862f5d8799fd098eb14039cb0fd 100644 (file)
@@ -9851,7 +9851,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
        XIValuatorState *states;
        double *values;
        bool found_valuator = false;
+#ifdef HAVE_XWIDGETS
        bool any_stop_p = false;
+#endif /* HAVE_XWIDGETS */
 
        /* A fake XMotionEvent for x_note_mouse_movement. */
        XMotionEvent ev;