summaryrefslogtreecommitdiffhomepage
path: root/auto/os
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2016-06-27 15:00:03 -0700
committerPiotr Sikora <piotrsikora@google.com>2016-06-27 15:00:03 -0700
commitf8c6a0800c310d880d2f2a5b23799fe9ac1abfc5 (patch)
tree9a0e47aaa62235f5cba55370ac8d730adbd5b898 /auto/os
parentd8a2b25cb839c7e239d00118b01fbd313635731f (diff)
downloadnginx-f8c6a0800c310d880d2f2a5b23799fe9ac1abfc5.tar.gz
nginx-f8c6a0800c310d880d2f2a5b23799fe9ac1abfc5.tar.bz2
Configure: fix build with -Werror=unused-but-set-variable.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'auto/os')
-rw-r--r--auto/os/darwin4
-rw-r--r--auto/os/linux1
-rw-r--r--auto/os/solaris2
3 files changed, 4 insertions, 3 deletions
diff --git a/auto/os/darwin b/auto/os/darwin
index 9b31b1f69..b4b3ad306 100644
--- a/auto/os/darwin
+++ b/auto/os/darwin
@@ -113,6 +113,6 @@ ngx_feature_run=no
ngx_feature_incs="#include <libkern/OSAtomic.h>"
ngx_feature_path=
ngx_feature_libs=
-ngx_feature_test="int32_t lock, n;
- n = OSAtomicCompareAndSwap32Barrier(0, 1, &lock)"
+ngx_feature_test="int32_t lock = 0;
+ if (!OSAtomicCompareAndSwap32Barrier(0, 1, &lock)) return 1"
. auto/feature
diff --git a/auto/os/linux b/auto/os/linux
index c93226757..132ce3b42 100644
--- 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 --git a/auto/os/solaris b/auto/os/solaris
index d39df0bf7..1dcfe8462 100644
--- a/auto/os/solaris
+++ b/auto/os/solaris
@@ -52,7 +52,7 @@ ngx_feature_run=no
ngx_feature_incs="#include <port.h>"
ngx_feature_path=
ngx_feature_libs=
-ngx_feature_test="int n = port_create()"
+ngx_feature_test="(void) port_create()"
. auto/feature
if [ $ngx_found = yes ]; then