summaryrefslogtreecommitdiff
path: root/test/handle_keys.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-12 21:47:33 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-12 21:47:33 +0100
commit5e4f51ac6b1d1da32687a40d29a0006a9be8eb67 (patch)
treeaa4de5e405138a59e0d4365769fdbe233c838e8b /test/handle_keys.cxx
parent13526f04abd4e3474b309e54af7fc6b462cc2e2f (diff)
Fix several compiler warnings
Three unrelated but only minor warnings.
Diffstat (limited to 'test/handle_keys.cxx')
-rw-r--r--test/handle_keys.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/handle_keys.cxx b/test/handle_keys.cxx
index 09838a5de..6aee5b0cf 100644
--- a/test/handle_keys.cxx
+++ b/test/handle_keys.cxx
@@ -230,7 +230,7 @@ int app::handle(int ev) {
char capslk = (Fl::event_state() & FL_CAPS_LOCK) ? 'L' : '.';
tty->printf("%06x ", ekey); // event key number (hex)
- int lg;
+ int lg = 0;
tty->printf("%s", get_keyname(ekey, lg));
for (int i = lg; i < 14; i++) {
tty->printf(" ");