]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix build of unit test on 32b architecture
authorPetr Menšík <pemensik@redhat.com>
Wed, 20 Nov 2024 12:08:54 +0000 (13:08 +0100)
committerEvan Hunt <each@isc.org>
Thu, 21 Nov 2024 04:23:08 +0000 (04:23 +0000)
commit3a8741c8a96cc496409d9c28acafcaffccde92ec
tree0abf47facc3cda331f6078d20eec55b64663d875
parent6c46ccc577fe1ed2f384f0c7ef890894f1a6dca1
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[],
tests/isc/time_test.c