From 7358144f09f69c520f2040a90e2098a94c41d3b2 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 16 Sep 2019 14:25:08 +0100 Subject: [PATCH] vmm: Cleanup warning from "pci" feature only build Mark exit_evt with an underscore it may be unused (it is ignored if the "acpi" feature is not turned on.) Signed-off-by: Rob Bradford --- vmm/src/device_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index f0f9a1c8e..db065c462 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -299,7 +299,7 @@ impl DeviceManager { msi_capable: bool, userspace_ioapic: bool, mut mem_slots: u32, - exit_evt: &EventFd, + _exit_evt: &EventFd, reset_evt: &EventFd, ) -> DeviceManagerResult { let mut io_bus = devices::Bus::new(); @@ -362,7 +362,7 @@ impl DeviceManager { #[cfg(feature = "acpi")] let acpi_device = Arc::new(Mutex::new(devices::AcpiShutdownDevice::new( - exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?, + _exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?, reset_evt.try_clone().map_err(DeviceManagerError::EventFd)?, )));