Commit fe974502 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Make --enable-compiler-warnings=error the default


Former-commit-id: 415910cfa0460ebb485cf64231bfd93ff15cf7ec
parent 2f6a59be
......@@ -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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment