diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-08 21:20:57 +0100 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-13 10:13:49 +0100 |
commit | 6c74ab7fcc8c8b6916d06b73b212ee88176fc76d (patch) | |
tree | 13e74bb5df4657c8d577d727466ff26df405f700 | |
parent | 93dd6145627b93f59b3fbea2a5bcea6327c5faa5 (diff) | |
download | glib-6c74ab7fcc8c8b6916d06b73b212ee88176fc76d.tar.gz |
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);
| ^~~~~~~~~~~~~~
-rw-r--r-- | glib/tests/markup-collect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |