From 8a2d95b4b5d513996fda52b5029fedd0d0ebd47d Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Mon, 17 Feb 2025 15:41:22 +0100 Subject: [PATCH] pageserver: appease unused lint on macOS (#10846) ## Problem `SmgrOpFlushInProgress::measure()` takes a `socket_fd` argument which is only used on Linux. This causes linter warnings on macOS. Touches #10823. ## Summary of changes Add a noop use of `socket_fd` on non-Linux branch. --- pageserver/src/metrics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pageserver/src/metrics.rs b/pageserver/src/metrics.rs index 0ffd4e851a..16ca4683ad 100644 --- a/pageserver/src/metrics.rs +++ b/pageserver/src/metrics.rs @@ -1489,6 +1489,7 @@ impl SmgrOpFlushInProgress { } #[cfg(not(target_os = "linux"))] { + _ = socket_fd; // appease unused lint on macOS (-1, -1) } };