From 815a8a7db21640633b1615044838c73e2451ac86 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Sat, 11 Dec 2021 11:47:55 +0200 Subject: [PATCH] Pacify unused variable warning in xterm.c * src/xterm.c (handle_one_xevent) [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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index ae0daa79f31..41aa2b268c1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; -- 2.39.5