From 171b7064c6bed1ca412137bd5b632c1bbc0f9964 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 18 Oct 2018 22:00:43 -0400 Subject: Drop -Wno-format-truncation since only newer versions of GCC support it and the configure check has never worked. --- configure | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'configure') diff --git a/configure b/configure index eee441edf..27389d337 100755 --- a/configure +++ b/configure @@ -7088,34 +7088,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$OLDCFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5 -$as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; } - OLDCFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror -Wno-format-truncation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - OPTIM="$OPTIM -Wno-format-truncation" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$OLDCFLAGS" - # Additional warning options for development testing... - if test -d .svn; then + if test -d .git; then OPTIM="-Werror $OPTIM" fi fi -- cgit v1.2.1