From 378e9b236a263b9c4bf7c79277b9cdda348e7d01 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 14 Dec 2024 09:28:05 +0100 Subject: [PATCH] Silence time_t deprecation This is not something that affects us or we can do anything about. --- src/history.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/history.rs b/src/history.rs index 0746124f4..458836a41 100644 --- a/src/history.rs +++ b/src/history.rs @@ -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()) {