From 53784f95aa657295e5a5eb6c0deedded0a9fc757 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 14 Jan 2020 10:24:28 +0100 Subject: [PATCH] tests,fixture: fix warnings with -Wsign-compare MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) { | ^~ --- plugins/tests/test-fixture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));