Fix warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user