From 2b40c6364ee89937f8e7b3c3c3b3b79e7681c874 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sat, 10 Aug 2024 17:36:56 -0700 Subject: [PATCH] Mark some functions as potentially unused Fixes warnings on macOS --- src/libc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libc.rs b/src/libc.rs index 2fcc672f6..597140dab 100644 --- a/src/libc.rs +++ b/src/libc.rs @@ -202,6 +202,7 @@ extern "C" { fn C_getrusage64(resource: c_int, usage: *mut rusage64) -> c_int; } +#[allow(unused)] pub(crate) fn clock_gettime64(clk_id: libc::clockid_t) -> Option { let mut tp = unsafe { std::mem::zeroed() }; if !unsafe { C_clock_gettime64(clk_id, &mut tp) } { @@ -213,6 +214,7 @@ extern "C" { fn C_clock_gettime64(clk_id: libc::clockid_t, tp: *mut timespec64) -> bool; } +#[allow(unused)] pub(crate) fn futimens64(fd: c_int, time0: timespec64, time1: timespec64) -> bool { unsafe { C_futimens64(fd, time0, time1) } }