[glib: 9/11] Fix signedness warning in gio/gdesktopappinfo.c:desktop_file_dirs_lock()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 9/11] Fix signedness warning in gio/gdesktopappinfo.c:desktop_file_dirs_lock()
- Date: Wed, 13 Jan 2021 11:50:55 +0000 (UTC)
commit 04a05ff01694268142974e1d47d894573405865f
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 10:59:52 2020 +0100
Fix signedness warning in gio/gdesktopappinfo.c:desktop_file_dirs_lock()
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]