[glib: 5/15] Fix signedness warning in glib/tests/markup-collect.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/15] Fix signedness warning in glib/tests/markup-collect.c
- Date: Sat, 14 Nov 2020 11:44:47 +0000 (UTC)
commit 6c74ab7fcc8c8b6916d06b73b212ee88176fc76d
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Sun Nov 8 21:20:57 2020 +0100
Fix signedness warning in glib/tests/markup-collect.c
glib/gtestutils.h:134:96: error: comparison of integer expressions of different signedness: ‘gint’ {aka
‘int’} and ‘GMarkupError’
134 | if (!err || (err)->domain != dom || (err)->code !=
c) \
| ^~
glib/tests/markup-collect.c:168:7: note: in expansion of macro ‘g_assert_error’
168 | g_assert_error (error, G_MARKUP_ERROR, test->error_code);
| ^~~~~~~~~~~~~~
glib/tests/markup-collect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/markup-collect.c b/glib/tests/markup-collect.c
index 82b5aaff3..0c2757a34 100644
--- a/glib/tests/markup-collect.c
+++ b/glib/tests/markup-collect.c
@@ -165,7 +165,7 @@ test_collect (gconstpointer d)
}
else
{
- g_assert_error (error, G_MARKUP_ERROR, test->error_code);
+ g_assert_error (error, G_MARKUP_ERROR, (gint) test->error_code);
}
g_markup_parse_context_free (ctx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]