diff --git a/src/wasi/mod.rs b/src/wasi/mod.rs index af79c900b168..145a731c0f2c 100644 --- a/src/wasi/mod.rs +++ b/src/wasi/mod.rs @@ -32,6 +32,7 @@ pub type c_double = f64; pub type c_float = f32; pub type ino_t = u64; cfg_if! { + #[allow(unexpected_cfgs)] if #[cfg(target_vendor = "wasmer")] { s! { #[repr(C)] @@ -898,6 +899,7 @@ extern "C" { } cfg_if! { + #[allow(unexpected_cfgs)] if #[cfg(target_env = "p2")] { mod p2; pub use self::p2::*;