Skip to content

Commit

Permalink
[wasi-common] Fix a warning about unreachable code. (#1374)
Browse files Browse the repository at this point in the history
`exit` doesn't return, so code after it is unreachable.
  • Loading branch information
sunfishcode authored Mar 20, 2020
1 parent e245e6d commit ff18c5b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit ff18c5b

Please sign in to comment.