From 3f8186f62740a4273da52c93f0e0736c51f5c7e1 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Wed, 4 Jun 2025 12:41:10 +0530 Subject: [PATCH] hypervisor: Fix issues with nightly compilers cargo fuzz build complaints about some un-used function in the instruction emultator. Silence the warning by allowing dead code generation. Signed-off-by: Jinank Jain --- hypervisor/src/arch/x86/emulator/instructions/cmp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/src/arch/x86/emulator/instructions/cmp.rs b/hypervisor/src/arch/x86/emulator/instructions/cmp.rs index 4970c0423..21974a578 100644 --- a/hypervisor/src/arch/x86/emulator/instructions/cmp.rs +++ b/hypervisor/src/arch/x86/emulator/instructions/cmp.rs @@ -4,7 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 // -#![allow(non_camel_case_types, clippy::upper_case_acronyms)] +#![allow(non_camel_case_types, dead_code, clippy::upper_case_acronyms)] // // CMP-Compare Two Operands