From eb7a52bf4bd3b19c22f2eadda444ab045c674fe3 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Mon, 3 May 2021 18:45:19 -0400 Subject: Rust API : Better headless support; Introducing `binaryninja::open_view` and `binaryninja::open_view_with_options`, updated init/shutdown, script example, more setting support, and misc fixes --- rust/src/callingconvention.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/callingconvention.rs') diff --git a/rust/src/callingconvention.rs b/rust/src/callingconvention.rs index dcb88970..8cc1b71c 100644 --- a/rust/src/callingconvention.rs +++ b/rust/src/callingconvention.rs @@ -130,7 +130,7 @@ where where C: CallingConventionBase, { - ffi_wrap!("CallingConvention::callee_saved_registers", unsafe { + ffi_wrap!("CallingConvention::_callee_saved_registers", unsafe { let ctxt = &*(ctxt as *mut CustomCallingConventionContext); let regs = ctxt.cc.callee_saved_registers(); @@ -559,7 +559,7 @@ unsafe impl RefCountable for CallingConvention { pub struct ConventionBuilder { caller_saved_registers: Vec, - callee_saved_registers: Vec, + _callee_saved_registers: Vec, int_arg_registers: Vec, float_arg_registers: Vec, @@ -626,7 +626,7 @@ impl ConventionBuilder { pub fn new(arch: &A) -> Self { Self { caller_saved_registers: Vec::new(), - callee_saved_registers: Vec::new(), + _callee_saved_registers: Vec::new(), int_arg_registers: Vec::new(), float_arg_registers: Vec::new(), @@ -649,7 +649,7 @@ impl ConventionBuilder { } reg_list!(caller_saved_registers); - reg_list!(callee_saved_registers); + reg_list!(_callee_saved_registers); reg_list!(int_arg_registers); reg_list!(float_arg_registers); -- cgit v1.3.1