Skip to content

Commit

Permalink
add missing MAYBE_UNUSED
Browse files Browse the repository at this point in the history
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();
```
  • Loading branch information
divinity76 authored and oconnor663 committed Jan 23, 2025
1 parent 5c8b350 commit d2e8069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/blake3_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d2e8069

Please sign in to comment.