diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-02 14:57:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 20:57:31 +0000 |
commit | aec0e408eac7e93a70f5d7319985e59ff8770e38 (patch) | |
tree | 2175058bbabc56e80f51bdc7b9c87d45aff44ba9 | |
parent | 4d66ec91c1ca23134dc25f58f41da52a99615a38 (diff) |
chore(ext/ffi): sym is unused on aarch64 linux (#23188)
Fix a warning on linux aarch64
---------
Signed-off-by: Matt Mastracci <matthew@mastracci.com>
-rw-r--r-- | ext/ffi/turbocall.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ffi/turbocall.rs b/ext/ffi/turbocall.rs index c0bb06716..0417da633 100644 --- a/ext/ffi/turbocall.rs +++ b/ext/ffi/turbocall.rs @@ -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); |