Skip to content

Commit

Permalink
fix ignore -Wnonnull new gcc 11 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DeckerSU committed Nov 15, 2023
1 parent 1ec5b40 commit b639b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zcutil/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ if [ "$(gcc --version|head -1 | awk '{print $4}' | cut -d"." -f1)" -lt 8 ]; then
CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" $CONFIGURE_FLAGS CPPFLAGS='-g' CXXFLAGS='-g'
else
# version 8 and up
CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" $CONFIGURE_FLAGS CPPFLAGS='-g -Wno-builtin-declaration-mismatch -Wnonnull -Werror' CXXFLAGS='-g'
CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" $CONFIGURE_FLAGS CPPFLAGS='-g -Wno-builtin-declaration-mismatch -Wno-nonnull -Werror' CXXFLAGS='-g'
fi
"$MAKE" "$@" V=1

0 comments on commit b639b0e

Please sign in to comment.