Fix warnings

Reviewed By: andronat

Differential Revision: D35603562

fbshipit-source-id: 20496da3ca212ed867ecdf374990f93c996f6417
This commit is contained in:
Jason White 2022-04-13 09:45:27 -07:00 committed by Facebook GitHub Bot
parent e5f89a81e9
commit 3a31b92d6c

View file

@ -193,10 +193,10 @@ async fn raise_sigwinch<T: Guest<LocalState>>(guest: &mut T) -> Tgkill {
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
#[cfg(not(feature = "llvm_asm"))]
unsafe fn syscall_no_branches(no: libc::c_long, arg1: libc::c_long) {
let mut ret: u64;
let mut _ret: u64;
core::arch::asm!(
"syscall",
lateout("rax") ret,
lateout("rax") _ret,
in("rax") no,
in("rdi") arg1,
out("rcx") _, // rcx is used to store old rip