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 Satya Rohith
parent 36808d89d5
commit 2d1e1a7a94
No known key found for this signature in database
GPG key ID: B2705CF40523EB05

View file

@ -27,6 +27,8 @@ pub(crate) fn is_compatible(sym: &Symbol) -> bool {
.any(|t| matches!(t, NativeType::Struct(_)))
}
// Unused on linux aarch64
#[allow(unused)]
pub(crate) fn compile_trampoline(sym: &Symbol) -> Trampoline {
#[cfg(all(target_arch = "x86_64", target_family = "unix"))]
return SysVAmd64::compile(sym);