From f908dc6c1205feb66f3538096f24e2ee22947893 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 8 Oct 2023 13:26:51 -0700 Subject: XkbIndentText: Fix -Wsign-compare warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xkbtext.c: In function ‘XkbIndentText’: xkbtext.c:1529:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 1529 | for (i = 0; i < size; i++) { | ^ Signed-off-by: Alan Coopersmith --- src/xkbtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/xkbtext.c b/src/xkbtext.c index d3a37a1..353c91e 100644 --- a/src/xkbtext.c +++ b/src/xkbtext.c @@ -1522,7 +1522,7 @@ char * XkbIndentText(unsigned size) { static char buf[32]; - register int i; + unsigned int i; if (size > 31) size = 31; -- cgit v1.2.3