[glib: 6/15] Fix signedness warnings in glib/tests/once.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/15] Fix signedness warnings in glib/tests/once.c
- Date: Sat, 14 Nov 2020 11:51:57 +0000 (UTC)
commit 700a9d4042661df1eb098911e9f8932bec39ca69
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Oct 15 11:12:03 2020 +0200
Fix signedness warnings in glib/tests/once.c
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]