From f1b9f97aefa2908e3a08f769292f6d63f96defa3 Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 27 Jul 2021 16:34:04 -0700 Subject: [PATCH] remove avx error on macos (#18923) --- core/src/validator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/validator.rs b/core/src/validator.rs index 77ba0c8982..51be119d93 100644 --- a/core/src/validator.rs +++ b/core/src/validator.rs @@ -1470,6 +1470,7 @@ fn report_target_features() { // Validator binaries built on a machine with AVX support will generate invalid opcodes // when run on machines without AVX causing a non-obvious process abort. Instead detect // the mismatch and error cleanly. +#[allow(dead_code)] #[target_feature(enable = "avx")] unsafe fn check_avx() { if is_x86_feature_detected!("avx") {