diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-14 10:19:20 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 14:52:49 +0100 |
commit | 7075e852caabb164979a1192bfeda550bdd70f4f (patch) | |
tree | 080a453b03de775f7a6cab01925d3a161feeba42 /src/tests | |
parent | 7125a86e0488320449767fcacbad5c7ca2c9c719 (diff) |
test-error-helpers: fix warnings with -Wsign-compare
test-error-helpers.c: In function ‘test_error_helpers_connection_error’:
test-error-helpers.c:36:39: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’} [-Werror=sign-compare]
36 | for (i = enum_class->minimum; i <= enum_class->maximum; i++) { \
| ^~
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test-error-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-error-helpers.c b/src/tests/test-error-helpers.c index 88af6283..228dfc02 100644 --- a/src/tests/test-error-helpers.c +++ b/src/tests/test-error-helpers.c @@ -29,7 +29,7 @@ test_error_helpers_## ERROR_SMALL (void) \ { \ GError *error; \ - guint i; \ + gint i; \ GEnumClass *enum_class; \ \ enum_class = g_type_class_ref (MM_TYPE_ ## ERROR_CAPS); \ |