Browse Source
Change --enable-werror to apply to all warnings, use it in build.sh
pull/4/head
Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
2 changed files with
3 additions and
3 deletions
-
configure.ac
-
zcutil/build.sh
|
|
@ -167,7 +167,7 @@ AC_ARG_ENABLE([debug], |
|
|
|
# Turn warnings into errors |
|
|
|
AC_ARG_ENABLE([werror], |
|
|
|
[AS_HELP_STRING([--enable-werror], |
|
|
|
[Treat certain compiler warnings as errors (default is no)])], |
|
|
|
[Treat all compiler warnings as errors (default is no)])], |
|
|
|
[enable_werror=$enableval], |
|
|
|
[enable_werror=no]) |
|
|
|
|
|
|
@ -190,7 +190,7 @@ if test "x$enable_werror" = "xyes"; then |
|
|
|
if test "x$CXXFLAG_WERROR" = "x"; then |
|
|
|
AC_MSG_ERROR("enable-werror set but -Werror is not usable") |
|
|
|
fi |
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=vla],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=vla"],,[[$CXXFLAG_WERROR]]) |
|
|
|
ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror" |
|
|
|
fi |
|
|
|
|
|
|
|
if test "x$CXXFLAGS_overridden" = "xno"; then |
|
|
|
|
|
@ -132,5 +132,5 @@ ld -v |
|
|
|
|
|
|
|
HOST="$HOST" BUILD="$BUILD" NO_RUST="$RUST_ARG" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1 |
|
|
|
./autogen.sh |
|
|
|
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" "$LIBS_ARG" CXXFLAGS='-fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Werror -g' |
|
|
|
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" "$LIBS_ARG" --enable-werror CXXFLAGS='-fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -g' |
|
|
|
"$MAKE" "$@" V=1 |
|
|
|