Skip to content

Commit

Permalink
Fix 'unused variable' warning when neon_i8mm is disabled
Browse files Browse the repository at this point in the history
Guard hwcap2 feature interrogation on HAVE_NEON_I8MM so that it gets
disabled if neon_i8mm is disabled when configuring the build.

Bug: webm:1825
Change-Id: Ic6ff71f17387b96219591928a583d43560bb7c7a
  • Loading branch information
jwright-arm committed Oct 30, 2023
1 parent 6457f06 commit 3f35760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vpx_ports/aarch64_cpudetect.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ static int arm_get_cpu_caps(void) {
static int arm_get_cpu_caps(void) {
int flags = 0;
unsigned long hwcap = getauxval(AT_HWCAP);
#if HAVE_NEON_I8MM
unsigned long hwcap2 = getauxval(AT_HWCAP2);
#endif // HAVE_NEON_I8MM
#if HAVE_NEON
flags |= HAS_NEON; // Neon is mandatory in Armv8.0-A.
#endif // HAVE_NEON
Expand Down

0 comments on commit 3f35760

Please sign in to comment.