From d01e75de8ae59591f642d265ff1920c4947c9b94 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 11 Mar 2015 20:32:04 -0700 Subject: [PATCH] configure: only add -Werror id --enable-werror is used Signed-off-by: Ronnie Sahlberg --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 398f86e..41642d6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ AC_PREREQ(2.50) AC_INIT([libnfs], [1.9.7], [ronniesahlberg@gmail.com]) AC_CONFIG_HEADERS([config.h]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AM_INIT_AUTOMAKE([-Wall foreign]) AC_CANONICAL_HOST AC_CONFIG_MACRO_DIR([m4]) m4_pattern_allow([AM_PROG_AR]) @@ -74,7 +74,7 @@ AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror], [Disables building with -Werror by default])]) if test "$ac_cv_prog_gcc" = yes; then - WARN_CFLAGS="-Wall -Werror -Wshadow -Wno-write-strings -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing" + WARN_CFLAGS="-Wall -Wshadow -Wno-write-strings -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing" if test "x$enable_werror" != "xno"; then WARN_CFLAGS="$WARN_CFLAGS -Werror" fi