mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore(ext/ffi): sym is unused on aarch64 linux (#23188)
Fix a warning on linux aarch64 --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com>
This commit is contained in:
parent
4d66ec91c1
commit
aec0e408ea
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ pub(crate) fn is_compatible(sym: &Symbol) -> bool {
|
||||||
.any(|t| matches!(t, NativeType::Struct(_)))
|
.any(|t| matches!(t, NativeType::Struct(_)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unused on linux aarch64
|
||||||
|
#[allow(unused)]
|
||||||
pub(crate) fn compile_trampoline(sym: &Symbol) -> Trampoline {
|
pub(crate) fn compile_trampoline(sym: &Symbol) -> Trampoline {
|
||||||
#[cfg(all(target_arch = "x86_64", target_family = "unix"))]
|
#[cfg(all(target_arch = "x86_64", target_family = "unix"))]
|
||||||
return SysVAmd64::compile(sym);
|
return SysVAmd64::compile(sym);
|
||||||
|
|
Loading…
Reference in a new issue