summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 23:53:34 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 23:53:34 +0100
commitccfc479e43fb04f840fceced0ac4c6b3883efc28 (patch)
treebb23b596c21271b62eef4c998bec79d756bcee1a /src/drivers
parentbd1e759771d42dbeb0793ea9a3574380449839e6 (diff)
Fix "Wayland: compilation warnings" (#649)
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx2
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index 2a93fb9dd..8e2d0816a 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -652,7 +652,7 @@ const int dead_key_count = sizeof(dead_keys)/sizeof(struct dead_key_struct);
static int search_int_vector(Fl_Int_Vector& v, int val) {
- for (int pos = 0; pos < v.size(); pos++) {
+ for (unsigned pos = 0; pos < v.size(); pos++) {
if (v[pos] == val) return pos;
}
return -1;
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 6a40cec3c..2a9564744 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1136,7 +1136,7 @@ static bool process_menu_or_tooltip(struct wld_window *new_window) {
void Fl_Wayland_Window_Driver::makeWindow()
{
struct wld_window *new_window;
- bool is_floatingtitle;
+ bool is_floatingtitle = false;
Fl_Wayland_Screen_Driver::output *output;
wait_for_expose_value = 1;