From 18f8e49381e3ce9a8ed88600d7678e6acdb5a393 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 8 Dec 2017 13:28:28 +0100 Subject: [PATCH] Quiet unused variable warning on macOS --- pdns/dnsdist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 4e646dca2..9fbf6703c 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1803,7 +1803,7 @@ catch(std::exception& e) static void bindAny(int af, int sock) { - int one = 1; + __attribute__((unused)) int one = 1; #ifdef IP_FREEBIND if (setsockopt(sock, IPPROTO_IP, IP_FREEBIND, &one, sizeof(one)) < 0) -- 2.40.0