From a3c8dac6b6a55da19407bc90c348dbccfde35515 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Aug 2018 08:39:53 +0200 Subject: [PATCH] tests: Fix size types in pkd tests/pkd/pkd_hello.c:743:12: error: assuming signed overflow does not occur when simplifying conditional to constant [-Werror=strict-overflow] Signed-off-by: Andreas Schneider --- tests/pkd/pkd_hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pkd/pkd_hello.c b/tests/pkd/pkd_hello.c index c7713d49..131883a1 100644 --- a/tests/pkd/pkd_hello.c +++ b/tests/pkd/pkd_hello.c @@ -711,8 +711,8 @@ static int pkd_run_tests(void) { (pkd_dargs.opts.testmatch == NULL)) { rc = _cmocka_run_group_tests("all tests", all_tests, tindex, NULL, NULL); } else { - int i = 0; - int num_found = 0; + size_t i = 0; + size_t num_found = 0; const char *testname = pkd_dargs.opts.testname; const char *testmatch = pkd_dargs.opts.testmatch;