From 7ff6d779b5afd4780f6f60618bdc8cae73611fc1 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 21 Mar 2026 12:15:31 +0100 Subject: [PATCH] test: fix -Wunused-function warning The function is only used on BSDs. Introduced in commit 919b92d9 ("unix: support long path names in pipe.c") from a few days ago. --- test/test-pipe-getsockname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-pipe-getsockname.c b/test/test-pipe-getsockname.c index af24553c2..2192633f9 100644 --- a/test/test-pipe-getsockname.c +++ b/test/test-pipe-getsockname.c @@ -371,11 +371,12 @@ TEST_IMPL(pipe_getsockname_blocking) { return 0; } +#ifdef SOCK_MAXADDRLEN static void long_path_connect_cb(uv_connect_t* req, int status) { ASSERT_OK(status); uv_close((uv_handle_t*) req->handle, NULL); } - +#endif TEST_IMPL(pipe_getsockname_long_path) { #ifndef SOCK_MAXADDRLEN