1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-13 03:16:11 +02:00

Silence gcc -Wunused-function

gcc on MacOS-ARM64  may error out with

/Users/runner/work/php-src/php-src/ext/hash/blake3/upstream_blake3/c/blake3_dispatch.c:112:5: error: unused function 'get_cpu_features' [-Werror,-Wunused-function]

full compiler log https://github.com/php/php-src/actions/runs/7762643678/job/21173438425?pr=13194

- the optimal fix would be to make sure get_cpu_features() is only compiled on platforms where it is used, but that would take more effort (have not investigated how much effort that would be)
This commit is contained in:
divinity76 2024-02-03 00:48:09 +01:00 committed by GitHub
parent a65fcf63ee
commit e9b0456b88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,6 +297,8 @@ size_t blake3_simd_degree(void) {
return 4;
}
#endif
#else
MAYBE_UNUSED(get_cpu_features)
#endif
#if BLAKE3_USE_NEON == 1
return 4;