summaryrefslogtreecommitdiffstats
path: root/config/intel-flags
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-20 15:28:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-20 15:29:01 (GMT)
commit113481a8198e0f863a01e2d2cb3c43d5a5a844cd (patch)
tree24fb27b8f497313c7ef594b96e8a592a4d215fcf /config/intel-flags
parent8eb45094683843798b86ad8c3da298ebbde02fde (diff)
downloadhdf5-113481a8198e0f863a01e2d2cb3c43d5a5a844cd.zip
hdf5-113481a8198e0f863a01e2d2cb3c43d5a5a844cd.tar.gz
hdf5-113481a8198e0f863a01e2d2cb3c43d5a5a844cd.tar.bz2
Create common warnings for build systems
Diffstat (limited to 'config/intel-flags')
-rw-r--r--config/intel-flags19
1 files changed, 17 insertions, 2 deletions
diff --git a/config/intel-flags b/config/intel-flags
index dad210c..6b4e406 100644
--- a/config/intel-flags
+++ b/config/intel-flags
@@ -1,4 +1,4 @@
-# -*- shell-script -*-
+# -*- shell-script -*-
#
# Copyright by The HDF Group.
# Copyright by the Board of Trustees of the University of Illinois.
@@ -17,6 +17,20 @@
# if the compiler is not Intel; otherwise `cc_flags_set' is set to `yes'
#
+#
+# Prepend `$srcdir/config/intel-` to the filename suffix(es) given as
+# subroutine argument(s), remove comments starting with # and ending
+# at EOL, replace spans of whitespace (including newlines) with spaces,
+# and re-emit the file(s) thus filtered on the standard output stream.
+#
+load_intel_arguments()
+{
+ set -- $(for arg; do
+ sed 's,#.*$,,' $srcdir/config/intel-${arg}
+ done)
+ IFS=' ' echo "$*"
+}
+
# Get the compiler version in a way that works for icc
# icc unless a compiler version is already known
#
@@ -66,7 +80,8 @@ if test "X-icc" = "X-$cc_vendor"; then
# General
# Default to C99 standard.
- H5_CFLAGS="$H5_CFLAGS $arch -std=c99 -Wcheck -Wall"
+ H5_CFLAGS="$H5_CFLAGS $arch -std=c99"
+ H5_CFLAGS="$H5_CFLAGS $(load_intel_arguments warnings-general)"
# Production
PROD_CFLAGS=