mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
3567206059
commit
7358144f09
@ -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<Self> {
|
||||
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)?,
|
||||
)));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user