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") {