]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence unused variable 'pollstate' warning [RT #43109]
authorMark Andrews <marka@isc.org>
Tue, 30 Aug 2016 04:25:41 +0000 (14:25 +1000)
committerMark Andrews <marka@isc.org>
Tue, 30 Aug 2016 04:26:17 +0000 (14:26 +1000)
(cherry picked from commit 9d11e46714d3f5e99dbeeb3d7df4e42b1a899b63)

lib/isc/unix/socket.c

index 6eb18202cdf0aa0db78e64c62d7d26a1b0dc54ef..3f32161a2dc985a63fa847ac8a5de3d53eea5003 100644 (file)
@@ -4240,15 +4240,15 @@ watcher(void *uap) {
        const char *fnname = "ioctl(DP_POLL)";
        struct dvpoll dvp;
        int pass;
+#if defined(ISC_SOCKET_USE_POLLWATCH)
+       pollstate_t pollstate = poll_idle;
+#endif
 #elif defined (USE_SELECT)
        const char *fnname = "select()";
        int maxfd;
        int ctlfd;
 #endif
        char strbuf[ISC_STRERRORSIZE];
-#ifdef ISC_SOCKET_USE_POLLWATCH
-       pollstate_t pollstate = poll_idle;
-#endif
 
 #if defined (USE_SELECT)
        /*