Skip to content

Commit

Permalink
ci: suppress maybe-uninitialized warnings with -finline-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
evverx committed Jun 10, 2022
1 parent d22c6d9 commit ee10db6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ success() { echo >&2 -e "\033[32;1m$1\033[0m"; }
ARGS=()

if [[ "$COMPILER" == gcc ]]; then
ARGS+=("--optimization=2 -Dc_args=-finline-limit=1000 -Dcpp_args=-finline-limit=1000")
c_args="-finline-limit=1000 -fno-maybe-uninitialized"
ARGS+=("--optimization=2 -Dc_args='$c_args' -Dcpp_args='$c_args'")
fi

PACKAGES=(
Expand Down Expand Up @@ -137,9 +138,9 @@ for args in "${ARGS[@]}"; do
if ! AR="$AR" \
CC="$CC" CC_LD="$LINKER" CFLAGS="-Werror" \
CXX="$CXX" CXX_LD="$LINKER" CXXFLAGS="-Werror" \
meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror \
-Dnobody-group=nogroup $additional_meson_args \
-Dcryptolib="${CRYPTOLIB:?}" $args build; then
eval meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror \
-Dnobody-group=nogroup '$additional_meson_args' \
-Dcryptolib='"${CRYPTOLIB:?}"' $args build; then

cat build/meson-logs/meson-log.txt
fatal "meson failed with $args"
Expand Down

0 comments on commit ee10db6

Please sign in to comment.