Skip to content

Commit

Permalink
Add underscores to rust_eh_personality arguments to mark them as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jun 9, 2022
1 parent 3bb2e6f commit 733e26e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions panic_unwind/src/emcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ extern "C" fn exception_cleanup(ptr: *mut libc::c_void) -> *mut libc::c_void {
// Wasm error handling would use __gxx_personality_wasm0.
#[lang = "eh_personality"]
unsafe extern "C" fn rust_eh_personality(
version: c_int,
actions: uw::_Unwind_Action,
exception_class: uw::_Unwind_Exception_Class,
exception_object: *mut uw::_Unwind_Exception,
context: *mut uw::_Unwind_Context,
_version: c_int,
_actions: uw::_Unwind_Action,
_exception_class: uw::_Unwind_Exception_Class,
_exception_object: *mut uw::_Unwind_Exception,
_context: *mut uw::_Unwind_Context,
) -> uw::_Unwind_Reason_Code {
core::intrinsics::abort()
}
Expand Down

0 comments on commit 733e26e

Please sign in to comment.