Bazel: build with -Wno-deprecated-declarations. Fixes build on macOS 10.12+, which deprecated OSAtomic interfaces. Change-Id: I1092473d7a2cd10c4efd0ce8f108d00f6531c9f7 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://nginx-review.googlesource.com/2761 Reviewed-by: Lizan Zhou <zlizan@google.com>
diff --git a/build.bzl b/build.bzl index 2f850fc..a0add04 100644 --- a/build.bzl +++ b/build.bzl
@@ -32,6 +32,7 @@ "-Wlong-long", "-Wpointer-arith", "-Wshadow", + "-Wno-deprecated-declarations", "-Wno-unused-parameter", ] @@ -81,9 +82,7 @@ srcs = [ "src/ngx_http_brotli_filter_module.c", ], - copts = nginx_copts + [ - "-Wno-deprecated-declarations", - ], + copts = nginx_copts, defines = [ "NGX_HTTP_BROTLI_FILTER", ],