Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
fe974502
Commit
fe974502
authored
Sep 17, 2015
by
Peter W. Draper
Browse files
Make --enable-compiler-warnings=error the default
Former-commit-id: 415910cfa0460ebb485cf64231bfd93ff15cf7ec
parent
2f6a59be
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
fe974502
...
...
@@ -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])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment