/Library/Developer/CommandLineTools/usr/bin/make -f objs/Makefile install
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_file.o \
src/core/ngx_file.c
src/core/ngx_file.c:323:9: error: 'OSAtomicAdd64' is deprecated: first
deprecated in macOS 10.12 - Use
atomic_fetch_add_explicit(memory_order_relaxed) from <stdatomic.h> instead
[-Werror,-Wdeprecated-declarations]
n = ngx_atomic_fetch_add(ngx_temp_number, add);
^
src/os/unix/ngx_atomic.h:68:6: note: expanded from macro 'ngx_atomic_fetch_add'
(OSAtomicAdd64(add, (int64_t *) value) - add)
^
/usr/include/libkern/OSAtomicDeprecated.h:231:9: note: 'OSAtomicAdd64' has been
explicitly marked deprecated here
int64_t OSAtomicAdd64( int64_t __theAmount,
^
1 error generated.
既然是Mac,为何不直接
brew install nginx
?用homebrew吧