mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
gtkwin: solved unused variable error
solved unused variable error when KEY_EVENT_DIAGNOSTICS defined but DEBUG not defined although we intend to always define DEBUG when KEY_EVENT_DIAGNOSTICS is going to be defined.
This commit is contained in:
parent
476e09832f
commit
7d086184f8
@ -1218,7 +1218,7 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
|||||||
if (digit < 0)
|
if (digit < 0)
|
||||||
inst->alt_keycode = -2; /* it's invalid */
|
inst->alt_keycode = -2; /* it's invalid */
|
||||||
else {
|
else {
|
||||||
#ifdef KEY_EVENT_DIAGNOSTICS
|
#if defined(DEBUG) && defined(KEY_EVENT_DIAGNOSTICS)
|
||||||
int old_keycode = inst->alt_keycode;
|
int old_keycode = inst->alt_keycode;
|
||||||
#endif
|
#endif
|
||||||
if (inst->alt_keycode == -1)
|
if (inst->alt_keycode == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user