From d4d68cb960601619107768042891d70641449eb1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 30 Jan 2026 09:18:03 -0600 Subject: [PATCH] cpukit/libcsupport: Address -Wsign-compare warnings This warning occurs when comparing a signed variable to an unsigned one. This addresses warnings that only occurred on 64-bit targets. For the ones which only appeared on 64-bit targets, the cause was frequently a mismatch when comparing a combination off_t, ssize_t, and int. --- cpukit/libcsupport/src/pwdgrp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libcsupport/src/pwdgrp.c b/cpukit/libcsupport/src/pwdgrp.c index 3e4e04cb08..5f4d2bd60d 100644 --- a/cpukit/libcsupport/src/pwdgrp.c +++ b/cpukit/libcsupport/src/pwdgrp.c @@ -134,7 +134,7 @@ scanInt(FILE *fp, int *val) int i = 0; int limit = INT_MAX; int sign = 0; - int d; + unsigned int d; for (;;) { c = getc(fp);