From 026611b5a9ee9e0e51e255cfcf4b5bfd61f5f47b Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 20 Nov 2020 22:03:14 +0100 Subject: [PATCH] Fix several signedness warnings in tests/slice-threadinit.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tests/slice-threadinit.c: In function ‘main’: tests/slice-threadinit.c:77:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 77 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ tests/slice-threadinit.c:108:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 108 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ tests/slice-threadinit.c:113:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 113 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ tests/slice-threadinit.c:131:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 131 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ tests/slice-threadinit.c:139:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 139 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ tests/slice-threadinit.c:161:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 161 | for (j = 0; j < N_MAGAZINE_PROBES; j++) | ^ --- tests/slice-threadinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/slice-threadinit.c b/tests/slice-threadinit.c index f29dcbed1..30b186147 100644 --- a/tests/slice-threadinit.c +++ b/tests/slice-threadinit.c @@ -70,7 +70,7 @@ int main (int argc, char *argv[]) { - int j, n_pages = 0; + gsize j, n_pages = 0; void *mps[N_MAGAZINE_PROBES]; /* probe some magazine sizes */