[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 815a8a7: Pacify unused variable warning in xterm.c
From: |
Basil L. Contovounesios |
Subject: |
master 815a8a7: Pacify unused variable warning in xterm.c |
Date: |
Sat, 11 Dec 2021 05:03:20 -0500 (EST) |
branch: master
commit 815a8a7db21640633b1615044838c73e2451ac86
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Pacify unused variable warning in xterm.c
* 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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index ae0daa7..41aa2b2 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 815a8a7: Pacify unused variable warning in xterm.c,
Basil L. Contovounesios <=