[wasi-common] Fix a warning about unreachable code. (#1374)

`exit` doesn't return, so code after it is unreachable.
This commit is contained in:
Dan Gohman
2020-03-20 16:28:27 -07:00
committed by GitHub
parent e245e6dd9c
commit ff18c5b05c

View File

@@ -1288,7 +1288,6 @@ impl<'a> WasiSnapshotPreview1 for WasiCtx {
// TODO: Rather than call std::process::exit here, we should trigger a
// stack unwind similar to a trap.
std::process::exit(rval as i32);
Ok(())
}
fn proc_raise(&self, _sig: types::Signal) -> Result<()> {