From b419761189989cada2101c9c005e2e27aebdf223 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 20 Nov 2020 21:25:28 +0100 Subject: [PATCH] Fix signedness warning in tests/onceinit.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tests/onceinit.c: In function ‘stress_concurrent_initializers’: tests/onceinit.c:267:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 267 | for (i = 0; i < G_N_ELEMENTS (initializers); i++) | ^ --- tests/onceinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/onceinit.c b/tests/onceinit.c index 9788efcbd..4f30739ca 100644 --- a/tests/onceinit.c +++ b/tests/onceinit.c @@ -259,7 +259,7 @@ stress_concurrent_initializers (void *user_data) LIST_256_TEST_INITIALIZERS (stress3), LIST_256_TEST_INITIALIZERS (stress4), }; - int i; + gsize i; /* sync to main thread */ g_mutex_lock (&tmutex); g_mutex_unlock (&tmutex);