From fe974502838173baf846671b9f5ca82a74042e6f Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Thu, 17 Sep 2015 09:58:26 +0100
Subject: [PATCH] Make --enable-compiler-warnings=error the default

Former-commit-id: 415910cfa0460ebb485cf64231bfd93ff15cf7ec
---
 configure.ac | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8733587df6..c178ef8cd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,15 +279,15 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(
 [AC_DEFINE(HAVE__RTC,1,[Define if you have the UNICOS _rtc() intrinsic.])],[rtc_ok=no])
 AC_MSG_RESULT($rtc_ok)
 
-# Add warning flags if these can be used. Allow =error to add -Werror to GCC
-# and Intel.  Note do this last as compiler tests may become errors, if that's
-# an issue don't use CFLAGS for these, use an AC_SUBST().
+# Add warning flags by default, if these can be used. Option =error adds
+# -Werror to GCC and Intel.  Note do this last as compiler tests may become
+# errors, if that's an issue don't use CFLAGS for these, use an AC_SUBST().
 AC_ARG_ENABLE([compiler-warnings],
    [AS_HELP_STRING([--enable-compiler-warnings],
-     [Enable compile time warning flags, if compiler is known @<:@no/yes/error)@:>@]
+     [Enable compile time warning flags, if compiler is known @<:@error/no/yes)@:>@]
    )],
    [enable_warn="$enableval"],
-   [enable_warn="no"]
+   [enable_warn="error"]
 )
 
 if test "$enable_warn" != "no"; then
@@ -301,7 +301,6 @@ if test "$enable_warn" != "no"; then
     fi     
 fi
 
-
 # Check for git, needed for revision stamps.
 AC_PATH_PROG([GIT_CMD], [git])
 AC_SUBST([GIT_CMD])
-- 
GitLab