mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
crosvm: Supress unused mut warning for variable linux in run_vm
BUG=None TEST=emerge-${BOARD} crosvm Change-Id: Ib1e3629a7df98dd5a87955565757bb8ba96bdf87 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2825629 Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Kuo-Hsin Yang <vovoy@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Commit-Queue: Kuo-Hsin Yang <vovoy@chromium.org>
This commit is contained in:
parent
a00991cd84
commit
6139da6efe
1 changed files with 1 additions and 0 deletions
|
@ -2479,6 +2479,7 @@ where
|
||||||
fs_device_tubes.push(fs_device_tube);
|
fs_device_tubes.push(fs_device_tube);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(feature = "direct"), allow(unused_mut))]
|
||||||
let mut linux: RunnableLinuxVm<_, Vcpu, _> = Arch::build_vm(
|
let mut linux: RunnableLinuxVm<_, Vcpu, _> = Arch::build_vm(
|
||||||
components,
|
components,
|
||||||
&cfg.serial_parameters,
|
&cfg.serial_parameters,
|
||||||
|
|
Loading…
Reference in a new issue