From a27c957dc5100b33dd13ef4da1bcf19e40073ffd Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 14 Jan 2020 10:15:49 +0100 Subject: test-modem-helpers: fix warnings with -Wsign-compare MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test-modem-helpers.c: In function ‘test_creg_match’: test-modem-helpers.c:1127:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare] 1127 | for (i = 0; i < array->len; i++) { | ^ --- src/tests/test-modem-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tests/test-modem-helpers.c b/src/tests/test-modem-helpers.c index 76c58b07..f2becc94 100644 --- a/src/tests/test-modem-helpers.c +++ b/src/tests/test-modem-helpers.c @@ -1103,7 +1103,7 @@ test_creg_match (const char *test, RegTestData *data, const CregResult *result) { - int i; + guint i; GMatchInfo *info = NULL; MMModem3gppRegistrationState state = MM_MODEM_3GPP_REGISTRATION_STATE_UNKNOWN; MMModemAccessTechnology access_tech = MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN; -- cgit v1.2.3-70-g09d2