1
0
Fork 0
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:
Matt Mastracci 2024-04-02 14:57:31 -06:00 committed by GitHub
parent 4d66ec91c1
commit aec0e408ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);