summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;