Signed-off-by: Kevin Darbyshire-Bryant <l...@darbyshire-bryant.me.uk>
---
 src/dnsmasq.c | 4 +++-
 src/network.c | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/dnsmasq.c b/src/dnsmasq.c
index 10f19ea..286a1cd 100644
--- a/src/dnsmasq.c
+++ b/src/dnsmasq.c
@@ -1860,7 +1860,8 @@ static void check_dns_listeners(time_t now)
                    if (daemon->tcp_pids[i] == 0 && daemon->tcp_pipes[i] == -1)
                      {
                        char a;
-                       
+                       (void)a; /* suppress potential unused warning */
+
                        daemon->tcp_pids[i] = p;
                        daemon->tcp_pipes[i] = pipefd[0];
 #ifdef HAVE_LINUX_NETWORK
@@ -1911,6 +1912,7 @@ static void check_dns_listeners(time_t now)
              if (!option_bool(OPT_DEBUG))
                {
                  char a = 0;
+                 (void)a; /* suppress potential unused warning */
                  alarm(CHILD_LIFETIME);
                  close(pipefd[0]); /* close read end in child. */
                  daemon->pipe_to_parent = pipefd[1];
diff --git a/src/network.c b/src/network.c
index cb956ca..4bada37 100644
--- a/src/network.c
+++ b/src/network.c
@@ -785,6 +785,8 @@ int set_ipv6pktinfo(int fd)
 /* Find the interface on which a TCP connection arrived, if possible, or zero 
otherwise. */
 int tcp_interface(int fd, int af)
 { 
+  (void)fd; /* suppress potential unused warning */
+  (void)af; /* suppress potential unused warning */
   int if_index = 0;
 
 #ifdef HAVE_LINUX_NETWORK
@@ -1187,6 +1189,7 @@ int local_bind(int fd, union mysockaddr *addr, char 
*intname, unsigned int ifind
 #endif
     }
 
+  (void)intname; /* suppress potential unused warning */
 #if defined(SO_BINDTODEVICE)
   if (intname[0] != 0 &&
       setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, intname, IF_NAMESIZE) == -1)
-- 
2.21.1 (Apple Git-122.3)


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to