Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
fe974502
Commit
fe974502
authored
9 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Make --enable-compiler-warnings=error the default
Former-commit-id: 415910cfa0460ebb485cf64231bfd93ff15cf7ec
parent
2f6a59be
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+5
-6
5 additions, 6 deletions
configure.ac
with
5 additions
and
6 deletions
configure.ac
+
5
−
6
View file @
fe974502
...
@@ -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])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment