aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-14 10:24:28 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 14:52:49 +0100
commit53784f95aa657295e5a5eb6c0deedded0a9fc757 (patch)
treea449c1fe378ed742b70bc58b66c81716affa95d6
parent7655f3b35c2f732bacb7a27633c15e107c43234c (diff)
tests,fixture: fix warnings with -Wsign-compare
tests/test-fixture.c:130:28: error: comparison of integer expressions of different signedness: ‘gboolean’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare] 130 | if (modem_expected == n_modems) { | ^~
-rw-r--r--plugins/tests/test-fixture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tests/test-fixture.c b/plugins/tests/test-fixture.c
index d496fee7..29eb8d55 100644
--- a/plugins/tests/test-fixture.c
+++ b/plugins/tests/test-fixture.c
@@ -127,7 +127,7 @@ common_get_modem (TestFixture *fixture,
n_modems = g_list_length (modems);
g_assert_cmpuint (n_modems, <=, 1);
- if (modem_expected == n_modems) {
+ if ((guint)modem_expected == n_modems) {
if (modems) {
found = MM_OBJECT (g_object_ref (modems->data));
g_message ("Found modem at '%s'", mm_object_get_path (found));