]> granicus.if.org Git - pdns/commitdiff
Quiet unused variable warning on macOS
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 8 Dec 2017 12:28:28 +0000 (13:28 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 8 Dec 2017 12:28:28 +0000 (13:28 +0100)
pdns/dnsdist.cc

index 4e646dca2fcd662733347e5fc9caf19f3c888f0a..9fbf6703c119a8f9b002dffaba0218448d67cd1e 100644 (file)
@@ -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)