From: Chris Hofstaedtler Date: Fri, 8 Dec 2017 12:28:28 +0000 (+0100) Subject: Quiet unused variable warning on macOS X-Git-Tag: dnsdist-1.3.0~196^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6073%2Fhead;p=thirdparty%2Fpdns.git Quiet unused variable warning on macOS --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 4e646dca2f..9fbf6703c1 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)