From b82146c4b6249fcc226393764473a9e7e75af8f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Mon, 16 Nov 2020 20:52:23 +0100 Subject: [PATCH] Fix signedness warning in gio/gfileinfo.c:g_file_info_copy_into() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gfileinfo.c: In function ‘g_file_info_copy_into’: gio/gfileinfo.c:385:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} 385 | for (i = 0; i < dest_info->attributes->len; i++) | ^ --- gio/gfileinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index 67b261959..f29864709 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -376,7 +376,7 @@ g_file_info_copy_into (GFileInfo *src_info, GFileInfo *dest_info) { GFileAttribute *source, *dest; - int i; + guint i; g_return_if_fail (G_IS_FILE_INFO (src_info)); g_return_if_fail (G_IS_FILE_INFO (dest_info));