Skip to content

Commit d2d205d

Browse files
committed
Add underscores to rust_eh_personality arguments to mark them as unused
1 parent 46a3f0f commit d2d205d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: library/panic_unwind/src/emcc.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ extern "C" fn exception_cleanup(ptr: *mut libc::c_void) -> *mut libc::c_void {
111111
// Wasm error handling would use __gxx_personality_wasm0.
112112
#[lang = "eh_personality"]
113113
unsafe extern "C" fn rust_eh_personality(
114-
version: c_int,
115-
actions: uw::_Unwind_Action,
116-
exception_class: uw::_Unwind_Exception_Class,
117-
exception_object: *mut uw::_Unwind_Exception,
118-
context: *mut uw::_Unwind_Context,
114+
_version: c_int,
115+
_actions: uw::_Unwind_Action,
116+
_exception_class: uw::_Unwind_Exception_Class,
117+
_exception_object: *mut uw::_Unwind_Exception,
118+
_context: *mut uw::_Unwind_Context,
119119
) -> uw::_Unwind_Reason_Code {
120120
core::intrinsics::abort()
121121
}

0 commit comments

Comments
 (0)