File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 )
8381static inline int
You can’t perform that action at this time.
0 commit comments