From 1246d597d4b14712af17b02a2e3ef69cd6e4591f Mon Sep 17 00:00:00 2001 From: hanshenrik Date: Sat, 3 Feb 2024 09:52:45 +0100 Subject: [PATCH] silence -Wunused-function on MacOS-arm64 the #endif was in the wrong place, causing the error /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 --- c/blake3_dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c index af6c3da..5183d52 100644 --- a/c/blake3_dispatch.c +++ b/c/blake3_dispatch.c @@ -86,7 +86,6 @@ static void cpuidex(uint32_t out[4], uint32_t id, uint32_t sid) { #endif } -#endif enum cpu_feature { SSE2 = 1 << 0, @@ -161,6 +160,7 @@ static #endif } } +#endif void blake3_compress_in_place(uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN],