diff --git a/build-apisix-openresty.sh b/build-apisix-openresty.sh index 140d9595d..94057bd67 100755 --- a/build-apisix-openresty.sh +++ b/build-apisix-openresty.sh @@ -71,7 +71,7 @@ no_pool_patch=${no_pool_patch:-} cd openresty-${or_ver} || exit 1 ./configure --prefix="$OR_PREFIX" \ - --with-cc-opt="-DAPISIX_OPENRESTY_VER=$version $cc_opt" \ + --with-cc-opt="-DAPISIX_OPENRESTY_VER=$version -Werror $cc_opt" \ --with-ld-opt="$ld_opt" \ --add-module=../mod_dubbo \ --add-module=../ngx_multi_upstream_module \