SimpleJIT: Ignore result of writeln! to avoid a compiler warning when writing the perf map;

This commit is contained in:
Benjamin Bouvier
2018-11-08 16:41:00 +01:00
committed by Dan Gohman
parent 8b5ad467c6
commit e13b0886dc

View File

@@ -187,7 +187,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
.open(format!("/tmp/perf-{}.map", ::std::process::id()))
.unwrap();
writeln!(map_file, "{:x} {:x} {}", ptr as usize, code_size, name);
let _ = writeln!(map_file, "{:x} {:x} {}", ptr as usize, code_size, name);
}
let mut reloc_sink = SimpleJITRelocSink::new();