[validate] Fix compiler warning

This commit is contained in:
Igor Shaposhnik authored and João Capucho committed 2022-10-04 15:21:36 +01:00
1 parent abc4e1572a
commit 0f26e5c808
1 file changed
+1 -1
+1 -1
View File
@@ -863,7 +863,7 @@ impl super::Validator {
fun: &crate::Function,
module: &crate::Module,
mod_info: &ModuleInfo,
entry_point: bool,
#[cfg_attr(not(feature = "validate"), allow(unused))] entry_point: bool,
) -> Result<FunctionInfo, WithSpan<FunctionError>> {
#[cfg_attr(not(feature = "validate"), allow(unused_mut))]
let mut info = mod_info.process_function(fun, module, self.flags, self.capabilities)?;