Fix warnings.

This commit is contained in:
losfair
2019-03-17 10:54:50 +08:00
parent f8fe999015
commit d8d39c309c
6 changed files with 143 additions and 207 deletions

View File

@ -73,7 +73,7 @@ pub fn call_protected<T>(f: impl FnOnce() -> T) -> RuntimeResult<T> {
if signum != 0 {
*jmp_buf = prev_jmp_buf;
let (faulting_addr, inst_ptr) = CAUGHT_ADDRESSES.with(|cell| cell.get());
let (faulting_addr, _inst_ptr) = CAUGHT_ADDRESSES.with(|cell| cell.get());
let signal = match Signal::from_c_int(signum) {
Ok(SIGFPE) => "floating-point exception",