mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Silence time_t deprecation
This is not something that affects us or we can do anything about.
This commit is contained in:
parent
0a145cff3c
commit
378e9b236a
1 changed files with 2 additions and 0 deletions
|
@ -1436,6 +1436,8 @@ fn format_history_record(
|
|||
) -> WString {
|
||||
let mut result = WString::new();
|
||||
let seconds = time_to_seconds(item.timestamp());
|
||||
// This warns for musl, but the warning is useless to us - there is nothing we can or should do.
|
||||
#[allow(deprecated)]
|
||||
let seconds = seconds as libc::time_t;
|
||||
let mut timestamp: libc::tm = unsafe { std::mem::zeroed() };
|
||||
if let Some(show_time_format) = show_time_format.and_then(|s| CString::new(s).ok()) {
|
||||
|
|
Loading…
Reference in a new issue