Skip to content

Commit a1e66de

Browse files
committed
Partially revert 1beff5f
Fixes #24
1 parent 94eae2d commit a1e66de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/common/cpu.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ static CPUFeatures _cpu_features;
6363
#define AEGIS_AARCH64_HWCAP_SHA3 (1L << 17)
6464
#define AEGIS_AARCH64_HWCAP2_SVEAES (1L << 2)
6565

66-
#if !(__ARM_FEATURE_CRYPTO || __ARM_FEATURE_AES)
67-
# if defined(__APPLE__) && defined(CPU_TYPE_ARM64) && defined(CPU_SUBTYPE_ARM64E)
66+
#if defined(__APPLE__) && defined(CPU_TYPE_ARM64) && defined(CPU_SUBTYPE_ARM64E)
6867
// sysctlbyname() parameter documentation for instruction set characteristics:
6968
// https://developer.apple.com/documentation/kernel/1387446-sysctlbyname/determining_instruction_set_characteristics
70-
static inline int
69+
static inline int __attribute__((unused))
7170
_have_arm_feature(const char *feature)
7271
{
7372
int64_t feature_present = 0;
@@ -77,7 +76,6 @@ _have_arm_feature(const char *feature)
7776
}
7877
return feature_present;
7978
}
80-
# endif
8179

8280
#elif (defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64)) && defined(AT_HWCAP)
8381
static inline int

0 commit comments

Comments
 (0)