From 04a05ff01694268142974e1d47d894573405865f Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 10:59:52 +0100 Subject: [PATCH] Fix signedness warning in gio/gdesktopappinfo.c:desktop_file_dirs_lock() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gdesktopappinfo.c: In function ‘desktop_file_dirs_lock’: gio/gdesktopappinfo.c:1564:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 1564 | for (i = 0; i < desktop_file_dirs->len; i++) | ^ --- gio/gdesktopappinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index f660b4985..a2f0f439c 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -1545,7 +1545,7 @@ desktop_file_dir_get_implementations (DesktopFileDir *dir, static void desktop_file_dirs_lock (void) { - gint i; + guint i; const gchar *user_config_dir = g_get_user_config_dir (); g_mutex_lock (&desktop_file_dir_lock);