From: Petr Menšík Date: Wed, 20 Nov 2024 12:08:54 +0000 (+0100) Subject: Fix build of unit test on 32b architecture X-Git-Tag: v9.21.3~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a8741c8a96cc496409d9c28acafcaffccde92ec;p=thirdparty%2Fbind9.git Fix build of unit test on 32b architecture Fixes unittest build failure on i686 platform. In file included from tests/isc/time_test.c:24: tests/isc/time_test.c: In function ‘run_test_isc_time_formatISO8601TZms_test’: tests/isc/time_test.c:284:32: error: passing argument 2 of ‘_assert_in_set’ from incompatible pointer type [-Wincompatible-pointer-types] 284 | assert_in_set(buf[23], plus_minus, sizeof(plus_minus)); | ^~~~~~~~~~ | | | size_t * {aka unsigned int *} /usr/include/cmocka.h:2369:64: note: expected ‘const long long unsigned int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’} 2369 | const LargestIntegralType value, const LargestIntegralType values[], --- diff --git a/tests/isc/time_test.c b/tests/isc/time_test.c index d3a7c016f42..26d27757258 100644 --- a/tests/isc/time_test.c +++ b/tests/isc/time_test.c @@ -280,7 +280,7 @@ ISC_RUN_TEST_IMPL(isc_time_formatISO8601TZms_test) { assert_int_equal(buf[16], ':'); assert_int_equal(buf[19], '.'); - size_t plus_minus[2] = { '+', '-' }; + LargestIntegralType plus_minus[2] = { '+', '-' }; assert_in_set(buf[23], plus_minus, sizeof(plus_minus)); assert_int_equal(buf[26], ':');