Mercurial > hg > nginx
comparison auto/os/darwin @ 6622:e393c0bf53d3
Configure: fix build with -Werror=unused-but-set-variable.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
author | Piotr Sikora <piotrsikora@google.com> |
---|---|
date | Mon, 27 Jun 2016 15:00:03 -0700 |
parents | 85dea406e18f |
children | 9fb994513776 |
comparison
equal
deleted
inserted
replaced
6621:0c3e464682e2 | 6622:e393c0bf53d3 |
---|---|
111 ngx_feature_name=NGX_DARWIN_ATOMIC | 111 ngx_feature_name=NGX_DARWIN_ATOMIC |
112 ngx_feature_run=no | 112 ngx_feature_run=no |
113 ngx_feature_incs="#include <libkern/OSAtomic.h>" | 113 ngx_feature_incs="#include <libkern/OSAtomic.h>" |
114 ngx_feature_path= | 114 ngx_feature_path= |
115 ngx_feature_libs= | 115 ngx_feature_libs= |
116 ngx_feature_test="int32_t lock, n; | 116 ngx_feature_test="int32_t lock = 0; |
117 n = OSAtomicCompareAndSwap32Barrier(0, 1, &lock)" | 117 if (!OSAtomicCompareAndSwap32Barrier(0, 1, &lock)) return 1" |
118 . auto/feature | 118 . auto/feature |