Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefen committed Jun 7, 2022
1 parent a1c4829 commit 8c399b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auto/cc/clang
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ if [ "$NGX_SYSTEM" = "Darwin" ]; then
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
fi

# dont warn on vla-parameter
CFLAGS="$CFLAGS -Wno-vla-parameter"

# stop on warning
CFLAGS="$CFLAGS -Werror"

Expand Down
2 changes: 2 additions & 0 deletions auto/cc/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ case "$NGX_GCC_VER" in
;;
esac

# dont warn on vla-parameter
CFLAGS="$CFLAGS -Wno-vla-parameter"

# stop on warning
CFLAGS="$CFLAGS -Werror"
Expand Down

0 comments on commit 8c399b7

Please sign in to comment.