From 700a9d4042661df1eb098911e9f8932bec39ca69 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Thu, 15 Oct 2020 11:12:03 +0200 Subject: [PATCH] Fix signedness warnings in glib/tests/once.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glib/tests/once.c: In function ‘test_once_init_multi_threaded’: glib/tests/once.c:183:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 183 | for (i = 0; i < G_N_ELEMENTS (threads); i++) | ^ glib/tests/once.c:186:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 186 | for (i = 0; i < G_N_ELEMENTS (threads); i++) | ^ --- glib/tests/once.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/once.c b/glib/tests/once.c index c34156173..8fc8d5014 100644 --- a/glib/tests/once.c +++ b/glib/tests/once.c @@ -173,7 +173,7 @@ thread_func (gpointer data) static void test_once_init_multi_threaded (void) { - gint i; + gsize i; GThread *threads[THREADS]; g_test_summary ("Test g_once_init_{enter,leave}() usage from multiple threads");