From ccfc479e43fb04f840fceced0ac4c6b3883efc28 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 11 Jan 2023 23:53:34 +0100 Subject: Fix "Wayland: compilation warnings" (#649) --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers') 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; -- cgit v1.2.3