summaryrefslogtreecommitdiff
path: root/test
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
parent13526f04abd4e3474b309e54af7fc6b462cc2e2f (diff)
Fix several compiler warnings
Three unrelated but only minor warnings.
Diffstat (limited to 'test')
-rw-r--r--test/handle_keys.cxx2
-rw-r--r--test/unittest_scrollbarsize.cxx4
2 files changed, 3 insertions, 3 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(" ");
diff --git a/test/unittest_scrollbarsize.cxx b/test/unittest_scrollbarsize.cxx
index b964fcebe..afc34789a 100644
--- a/test/unittest_scrollbarsize.cxx
+++ b/test/unittest_scrollbarsize.cxx
@@ -1,7 +1,7 @@
//
// Unit tests for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2022 by Bill Spitzak and others.
+// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -204,7 +204,7 @@ public:
int texty = tabley + tableh + ysep;
int texth = browh;
int termy = texty + texth + ysep;
- int termh = texth;
+ // int termh = texth; // unused but left because it's documented above
brow_a = makebrowser(X+ 10,browy,100,browh,"Browser A");
brow_b = makebrowser(X+120,browy,100,browh,"Browser B");
brow_c = makebrowser(X+230,browy,100,browh,"Browser C");