From 9d708a1b5a00b49463f284a19c23277f787c55df Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 1 Nov 2024 16:35:03 +0100 Subject: [PATCH] Fix compiler warning [-Wsign-compare] Note: it is *unusual* (not FLTK style) that Fl_Window::border() returns 'unsigned int' instead of 'int'. This should be investigated in FLTK 1.5 but maybe we can't change it: it's been so already in FLTK 1.3 and maybe earlier. --- test/fullscreen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index 00a15da72..65c25036a 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -1,6 +1,6 @@ // // -// Copyright 1998-2023 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 @@ -179,7 +179,7 @@ void border_cb(Fl_Button *b, Fl_Window *w) { int d = b->value(); w->border(d); // border change may have been refused (e.g. with fullscreen window) - if (w->border() != d) b->value(w->border()); + if ((int)w->border() != d) b->value(w->border()); }