From c8b8141791576b4e192a15af0962b11d81b79052 Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sat, 24 Aug 2024 22:43:08 +0200 Subject: [PATCH] Fix warning unused parameter 'reply_timestamp' under macOS --- src/fping.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fping.c b/src/fping.c index 709ae62..6245cb6 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2028,7 +2028,11 @@ select_again: } int receive_packet(int64_t wait_time, +#if HAVE_SO_TIMESTAMPNS int64_t *reply_timestamp, +#else + int64_t *reply_timestamp __attribute__((unused)), +#endif struct sockaddr *reply_src_addr, size_t reply_src_addr_len, char *reply_buf, -- 2.43.0