From 93112d07d66cd9ee93ef00527df1da39dfaf7290 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 3 Apr 2022 15:36:59 -0700 Subject: Fix -Wsign-compare warning from gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ULabel.c: In function ‘SetValues’: ULabel.c:670:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < *num_args; i++) { ^ Signed-off-by: Alan Coopersmith --- ULabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ULabel.c b/ULabel.c index f7d7a38..4a84632 100644 --- a/ULabel.c +++ b/ULabel.c @@ -661,7 +661,7 @@ SetValues(Widget current, Widget request, Widget new, UCSLabelWidget curlw = (UCSLabelWidget) current; UCSLabelWidget reqlw = (UCSLabelWidget) request; UCSLabelWidget newlw = (UCSLabelWidget) new; - int i; + unsigned int i; Boolean was_resized = False, redisplay = False, checks[NUM_CHECKS]; for (i = 0; i < NUM_CHECKS; i++) -- cgit v1.2.3