From 4d52358fe262d555e8bb70dc2a83c0ff190c39bf Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 20 Nov 2020 19:24:47 +0100 Subject: [PATCH] Fix signedness warning in gio/tests/gsettings.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/tests/gsettings.c: In function ‘strv_set_equal’: gio/tests/gsettings.c:2268:41: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’} 2268 | res = g_strv_length ((gchar**)strv) == count; | ^~ --- gio/tests/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index 9e570a1b2..b809090e7 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -2397,7 +2397,7 @@ strv_has_string (gchar **haystack, static gboolean strv_set_equal (gchar **strv, ...) { - gint count; + gsize count; va_list list; const gchar *str; gboolean res;