From 6e9b1b5f53ee53d8bdba74d25c072b9b185195b1 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 8 Dec 2016 23:25:53 +0100 Subject: [PATCH] One more unused when no TCP_FASTOPEN --- src/stub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stub.c b/src/stub.c index 9af045ae..ccca6b95 100644 --- a/src/stub.c +++ b/src/stub.c @@ -379,6 +379,7 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport) if (transport == GETDNS_TRANSPORT_TCP) return fd; #elif USE_OSX_TCP_FASTOPEN + (void)transport; sa_endpoints_t endpoints; endpoints.sae_srcif = 0; endpoints.sae_srcaddr = NULL; @@ -394,6 +395,8 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport) } } return fd; +#else + (void)transport; #endif if (connect(fd, (struct sockaddr *)&upstream->addr, upstream->addr_len) == -1) {