aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-02-09 09:31:19 -0500
committerJack Lloyd <[email protected]>2020-02-09 09:31:19 -0500
commit6080cc155bb2103f1321815261ce16df20bbd102 (patch)
treea972c83391346ffc9d55818c53bb6d5bdec9a5f3 /src
parent072869a5e448a37e18f4fa87bb4bb07324a0e015 (diff)
Fix an unused var warning when compiling for iOS
No way to detect cache line size afaik
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/cpuid/cpuid_arm.cpp4
1 files changed, 4 insertions, 0 deletions
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;