diff options
| author | divinity76 <[email protected]> | 2025-01-22 21:20:02 +0100 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2025-01-22 17:58:57 -0800 |
| commit | d2e8069161fef13bf0a5198a75dbaee81d8854d9 (patch) | |
| tree | 2eed22d291fb9dd16d0793317f258d927ee8bb21 | |
| parent | 5c8b350b3531102359b89e9f0a3367e6de4a43f4 (diff) | |
add missing MAYBE_UNUSED
caused
```
/Users/runner/work/php-src/php-src/ext/hash/blake3/upstream_blake3/c/blake3_dispatch.c:237:26: error: unused variable 'features' [-Werror,-Wunused-variable]
const enum cpu_feature features = get_cpu_features();
```
| -rw-r--r-- | c/blake3_dispatch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c index f04f5a0..52db905 100644 --- a/c/blake3_dispatch.c +++ b/c/blake3_dispatch.c @@ -234,6 +234,7 @@ void blake3_xof_many(const uint32_t cv[8], } #if defined(IS_X86) const enum cpu_feature features = get_cpu_features(); + MAYBE_UNUSED(features); #if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512) if (features & AVX512VL) { blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks); |
