Skip to content

fix test_unit with gcc-15 / use standard uint* instead of u_int#56

Open
PPN-SD wants to merge 2 commits intodeiv:masterfrom
PPN-SD:fix_test
Open

fix test_unit with gcc-15 / use standard uint* instead of u_int#56
PPN-SD wants to merge 2 commits intodeiv:masterfrom
PPN-SD:fix_test

Conversation

@PPN-SD
Copy link

@PPN-SD PPN-SD commented Sep 10, 2025

fix test_unit:

tests/test_unit.c:152:9: error: use of undeclared identifier 'uintptr_t'; did
you mean 'intptr_t'?
152 | assert_null(media_data);

tests/test_unit.c: In function ‘main’:
tests/test_unit.c:297:30: error: initialization of ‘void ()(void **)’
from incompatible pointer type ‘void (
)(void)’ [-Wincompatible-pointer-types]
297 | cmocka_unit_test(test_correct_media_drivers_for_mediatype_count)

use uint*, thus fix building w/ musl:

image.c:466:5: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
466 | u_int32_t current_box_len = __bswap_32(((u_int32_t) avifhdr));
| ^~~~~~~~~
| uint32_t

>tests/test_unit.c:152:9: error: use of undeclared identifier 'uintptr_t'; did
>      you mean 'intptr_t'?
>  152 |         assert_null(media_data);

>tests/test_unit.c: In function ‘main’:
>tests/test_unit.c:297:30: error: initialization of ‘void (*)(void **)’
>from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
>  297 |             cmocka_unit_test(test_correct_media_drivers_for_mediatype_count)
thus fix building w/ musl

>image.c:466:5: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
>  466 |     u_int32_t current_box_len = __bswap_32(*((u_int32_t*) avifhdr));
>      |     ^~~~~~~~~
>      |     uint32_t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant