Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -279,15 +279,15 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM( ...@@ -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_DEFINE(HAVE__RTC,1,[Define if you have the UNICOS _rtc() intrinsic.])],[rtc_ok=no])
AC_MSG_RESULT($rtc_ok) AC_MSG_RESULT($rtc_ok)
# Add warning flags if these can be used. Allow =error to add -Werror to GCC # Add warning flags by default, if these can be used. Option =error adds
# and Intel. Note do this last as compiler tests may become errors, if that's # -Werror to GCC and Intel. Note do this last as compiler tests may become
# an issue don't use CFLAGS for these, use an AC_SUBST(). # errors, if that's an issue don't use CFLAGS for these, use an AC_SUBST().
AC_ARG_ENABLE([compiler-warnings], AC_ARG_ENABLE([compiler-warnings],
[AS_HELP_STRING([--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="$enableval"],
[enable_warn="no"] [enable_warn="error"]
) )
if test "$enable_warn" != "no"; then if test "$enable_warn" != "no"; then
...@@ -301,7 +301,6 @@ if test "$enable_warn" != "no"; then ...@@ -301,7 +301,6 @@ if test "$enable_warn" != "no"; then
fi fi
fi fi
# Check for git, needed for revision stamps. # Check for git, needed for revision stamps.
AC_PATH_PROG([GIT_CMD], [git]) AC_PATH_PROG([GIT_CMD], [git])
AC_SUBST([GIT_CMD]) AC_SUBST([GIT_CMD])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment