mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-22 08:13:37 +08:00
Silence time_t deprecation
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
This is not something that affects us or we can do anything about.
This commit is contained in:
parent
0a145cff3c
commit
378e9b236a
|
@ -1436,6 +1436,8 @@ fn format_history_record(
|
||||||
) -> WString {
|
) -> WString {
|
||||||
let mut result = WString::new();
|
let mut result = WString::new();
|
||||||
let seconds = time_to_seconds(item.timestamp());
|
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 seconds = seconds as libc::time_t;
|
||||||
let mut timestamp: libc::tm = unsafe { std::mem::zeroed() };
|
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()) {
|
if let Some(show_time_format) = show_time_format.and_then(|s| CString::new(s).ok()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user