Skip to content

Commit

Permalink
Add -Wno-error=vla-cxx-extension to default flags
Browse files Browse the repository at this point in the history
Fixes wolfssl, muduo
  • Loading branch information
alexcrichton authored and catenacyber committed Aug 16, 2024
1 parent 25c3468 commit dd7bf2b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions infra/base-images/base-clang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,19 @@ ENV CCC "clang++"
# warning, to allow compiling legacy code.
# See https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes
# Same for deprecated-declarations, int-conversion,
# incompatible-function-pointer-types, enum-constexpr-conversion
# incompatible-function-pointer-types, enum-constexpr-conversion,
# vla-cxx-extension

ENV CFLAGS "-O1 -fno-omit-frame-pointer -gline-tables-only -Wno-error=enum-constexpr-conversion -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration -Wno-error=implicit-int -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
ENV CFLAGS -O1 \
-fno-omit-frame-pointer \
-gline-tables-only \
-Wno-error=enum-constexpr-conversion \
-Wno-error=incompatible-function-pointer-types \
-Wno-error=int-conversion \
-Wno-error=deprecated-declarations \
-Wno-error=implicit-function-declaration \
-Wno-error=implicit-int \
-Wno-error=vla-cxx-extension \
-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
ENV CXXFLAGS_EXTRA "-stdlib=libc++"
ENV CXXFLAGS "$CFLAGS $CXXFLAGS_EXTRA"

0 comments on commit dd7bf2b

Please sign in to comment.