From aef10c36f77866a4097c53fdbf3f9d33baa3f010 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Tue, 14 Jan 2014 01:47:25 -0800 Subject: upgrade autotools --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1704ad1b..ec0ab34f 100644 --- a/configure.ac +++ b/configure.ac @@ -33,15 +33,23 @@ fi AC_SUBST(ADD_CFLAGS) dnl Add these flags if we're using GCC. +case "$GCC$enable_werror" in + yesno) + CFLAGS="$CFLAGS -Wall" # Enable only if not going to fail with -Werror + ;; +esac case "$GCC" in yes) CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wshadow" CFLAGS="$CFLAGS -Wcast-qual" - CFLAGS="$CFLAGS -Wcast-align" CFLAGS="$CFLAGS -Wchar-subscripts" CFLAGS="$CFLAGS -Wmissing-prototypes" CFLAGS="$CFLAGS -Wmissing-declarations" + # There are legitimate uses for these features + CFLAGS="$CFLAGS -Wno-error=cast-align" + CFLAGS="$CFLAGS -Wno-error=visibility" + CFLAGS="$CFLAGS -Wno-error=parentheses-equality" ;; esac -- cgit v1.2.3