[glib: 5/6] Fix signedness warning in glib/tests/fileutils.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/6] Fix signedness warning in glib/tests/fileutils.c
- Date: Wed, 14 Oct 2020 14:10:07 +0000 (UTC)
commit dfa4907072893ba7ba11f2254797d928cb010a26
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri Sep 11 18:48:03 2020 +0200
Fix signedness warning in glib/tests/fileutils.c
glib/gtestutils.h:134:96: error: comparison of integer expressions of different signedness: ‘gint’ {aka
‘int’} and ‘GFileError’
134 | if (!err || (err)->domain != dom || (err)->code !=
c) \
| ^~
glib/tests/fileutils.c:1072:15: note: in expansion of macro ‘g_assert_error’
1072 | g_assert_error (error, G_FILE_ERROR, tests[i].expected_error);
| ^~~~~~~~~~~~~~
glib/tests/fileutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index 4baedf6f9..fa6fc6acf 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -976,7 +976,7 @@ test_set_contents_full (void)
gboolean use_strlen;
gboolean expected_success;
- GFileError expected_error;
+ gint expected_error;
}
tests[] =
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]