From fd49c16d9dc87317408bc43b9fdc84bd5a0171f8 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 13 Feb 2016 22:32:49 -0600 Subject: [PATCH] Use -Wall -Werror when compiling releases --- tools/make-releases | 2 ++ tools/make-windows-release | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/make-releases b/tools/make-releases index 5505bb50..fad2b88c 100755 --- a/tools/make-releases +++ b/tools/make-releases @@ -4,6 +4,8 @@ set -e MAKE="make -j$(grep -c processor /proc/cpuinfo)" +export CFLAGS="-O2 -Wall -Werror" + ./configure && $MAKE distcheck # Recompress with 7-Zip diff --git a/tools/make-windows-release b/tools/make-windows-release index da1d4ed6..3e3546d1 100755 --- a/tools/make-windows-release +++ b/tools/make-windows-release @@ -55,7 +55,6 @@ then # http://www.gnu.org/software/libtool/manual/libtool.html#Stripped-link-flags ./configure --host=${ARCH}-w64-mingw32 --disable-static \ CC="${ARCH}-w64-mingw32-gcc -static-libgcc" \ - CFLAGS="-O2 -Wall" \ CPPFLAGS="-I$SYSROOT/include" \ LDFLAGS="-L$SYSROOT/lib" \ PKG_CONFIG_PATH="$SYSROOT/lib/pkgconfig" \ -- 2.43.0