From 6080cc155bb2103f1321815261ce16df20bbd102 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 9 Feb 2020 09:31:19 -0500 Subject: Fix an unused var warning when compiling for iOS No way to detect cache line size afaik --- src/lib/utils/cpuid/cpuid_arm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/utils') diff --git a/src/lib/utils/cpuid/cpuid_arm.cpp b/src/lib/utils/cpuid/cpuid_arm.cpp index b422de9d2..ad9f63603 100644 --- a/src/lib/utils/cpuid/cpuid_arm.cpp +++ b/src/lib/utils/cpuid/cpuid_arm.cpp @@ -188,6 +188,8 @@ uint64_t CPUID::CPUID_Data::detect_cpu_features(size_t* cache_line_size) ::sysctlbyname("hw.machine", machine, &size, nullptr, 0); detected_features = flags_by_ios_machine_type(machine); + // No way to detect this on iOS? + BOTAN_UNUSED(cache_line_size); #elif defined(BOTAN_USE_GCC_INLINE_ASM) && defined(BOTAN_TARGET_ARCH_IS_ARM64) @@ -222,6 +224,8 @@ uint64_t CPUID::CPUID_Data::detect_cpu_features(size_t* cache_line_size) detected_features |= CPUID::CPUID_ARM_SHA2_BIT; } + BOTAN_UNUSED(cache_line_size); + #endif return detected_features; -- cgit v1.2.3