socket: fix compiler warning on macOS

Disable get_default_inet_domain() together with check_socket_flag() to
avoid a warning about unused function.

Reported-by: Bryan Christianson <bryan@whatroute.net>
This commit is contained in:
Miroslav Lichvar
2025-05-05 12:09:22 +02:00
parent 8140feb4fd
commit c17f481a20

View File

@@ -212,6 +212,8 @@ get_reusable_socket(int type, IPSockAddr *spec)
/* ================================================== */
#if defined(SOCK_CLOEXEC) || defined(SOCK_NONBLOCK)
static int
get_default_inet_domain(void)
{
@@ -224,7 +226,6 @@ get_default_inet_domain(void)
/* ================================================== */
#if defined(SOCK_CLOEXEC) || defined(SOCK_NONBLOCK)
static int
check_socket_flag(int sock_flag, int fd_flag, int fs_flag)
{