diff --git a/src/crosvm/sys/unix/device_helpers.rs b/src/crosvm/sys/unix/device_helpers.rs index 57900a52be..ad16efcae5 100644 --- a/src/crosvm/sys/unix/device_helpers.rs +++ b/src/crosvm/sys/unix/device_helpers.rs @@ -439,6 +439,7 @@ pub fn create_virtio_snd_device( Backend::NULL => "snd_null_device", #[cfg(feature = "audio_cras")] Backend::Sys(virtio::snd::sys::StreamSourceBackend::CRAS) => "snd_cras_device", + #[cfg(not(feature = "audio_cras"))] _ => unreachable!(), };