Fix warnings

This commit is contained in:
Noa
2022-08-29 21:00:14 -05:00
parent acbe323656
commit df6f4678e8
25 changed files with 40 additions and 108 deletions
+1 -1
View File
@@ -1238,7 +1238,7 @@ pub unsafe extern "C" fn vsscanf(s: *const c_char, format: *const c_char, ap: va
pub unsafe fn flush_io_streams() {
let flush = |stream: *mut FILE| {
let stream = &mut *stream;
stream.flush()
let _ = stream.flush();
};
flush(stdout);
flush(stderr);
+3 -3
View File
@@ -239,13 +239,13 @@ unsafe fn inner_scanf(
}
}};
(c_double) => {
parse_type!(noformat c_double);
parse_type!(noformat c_double)
};
(c_float) => {
parse_type!(noformat c_float);
parse_type!(noformat c_float)
};
($type:ident) => {
parse_type!($type, $type);
parse_type!($type, $type)
};
($type:ident, $final:ty) => {{
let n = if n.is_empty() {