From 99c7b421dbd083c3c16158982eabb28758868188 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 24 Oct 2022 17:58:51 -0700 Subject: Handle -Wsign-compare warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xlsclients.c: In function ‘show_client_properties’: xlsclients.c:485:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 485 | for (i = 0; i < command->value_len && charsleft > 0; ) { | ^ xlsclients.c:488:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 488 | if (i < command->value_len && charsleft > 0) { | ^ Signed-off-by: Alan Coopersmith --- xlsclients.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlsclients.c b/xlsclients.c index 548f958..0fbe1cf 100644 --- a/xlsclients.c +++ b/xlsclients.c @@ -440,7 +440,7 @@ show_client_properties(void *closure) xcb_get_property_reply_t *wm_class = NULL; char *argv; int charsleft = cs->maxcmdlen; - int i; + unsigned int i; /* * get the WM_MACHINE and WM_COMMAND list of strings -- cgit v1.2.3