[PATCH] Configure: fix build with -Werror=unused-but-set-variable

Piotr Sikora piotrsikora at google.com
Mon Jun 27 22:59:19 UTC 2016


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1467064803 25200
#      Mon Jun 27 15:00:03 2016 -0700
# Node ID ad603262a99df74951b05ce30c81ebc381694162
# Parent  d452cb27639f714bc43b7f3ede417e3e7f8efdd6
Configure: fix build with -Werror=unused-but-set-variable.

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r d452cb27639f -r ad603262a99d auto/os/linux
--- a/auto/os/linux
+++ b/auto/os/linux
@@ -44,6 +44,7 @@ ngx_feature_test="int efd = 0;
                   struct epoll_event ee;
                   ee.events = EPOLLIN|EPOLLOUT|EPOLLET;
                   ee.data.ptr = NULL;
+                  (void) ee;
                   efd = epoll_create(100);
                   if (efd == -1) return 1;"
 . auto/feature
diff -r d452cb27639f -r ad603262a99d auto/unix
--- a/auto/unix
+++ b/auto/unix
@@ -644,7 +644,8 @@ if [ $NGX_IPV6 = YES ]; then
     ngx_feature_path=
     ngx_feature_libs=
     ngx_feature_test="struct sockaddr_in6  sin6;
-                      sin6.sin6_family = AF_INET6;"
+                      sin6.sin6_family = AF_INET6;
+                      (void) sin6"
     . auto/feature
 fi
 



More information about the nginx-devel mailing list