test: fix -Wunused-function warning (#5090)

The function is only used on BSDs. Introduced in commit 919b92d9 ("unix:
support long path names in pipe.c") from a few days ago.
This commit is contained in:
Ben Noordhuis 2026-03-21 13:18:43 +01:00 committed by GitHub
parent 1f56978a28
commit 14f6c4cc1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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