summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/gfort-4.8
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-05-18 19:28:51 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-05-18 19:28:51 (GMT)
commitfcd87d2569ca4d8396c7db4eddb46cab04010abf (patch)
treefdd61c5aeeaf2ba4cf440177ef6d34f46d19741c /config/gnu-warnings/gfort-4.8
parent820363aa6d4e1dd1705237ee16cbf19f7649a4a0 (diff)
downloadhdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.zip
hdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.tar.gz
hdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.tar.bz2
Revise gnu-*flags and cmake/HDF*CompilerFlags.cmake files to add warning
flags for GCC compilers version 4.8 and above. Removed files from gnu-warnings that only apply to versions < 4.8. Consolidated warnings from versions < 4.8 that apply to versions >= 4.8 into the 4.8 warnings files.
Diffstat (limited to 'config/gnu-warnings/gfort-4.8')
-rw-r--r--config/gnu-warnings/gfort-4.812
1 files changed, 12 insertions, 0 deletions
diff --git a/config/gnu-warnings/gfort-4.8 b/config/gnu-warnings/gfort-4.8
index 1b96a51..9d880de 100644
--- a/config/gnu-warnings/gfort-4.8
+++ b/config/gnu-warnings/gfort-4.8
@@ -1,3 +1,15 @@
+# warning flags added for gfortran >= 4.4
+-Warray-temporaries
+-Wintrinsics-std
+
+# warning flag added for gfortran >= 4.5
+-Wimplicit-procedure
+
+# warning flags added for gfortran >= 4.7
+-Wreal-q-constant
+-Wfunction-elimination
+
+# warning flags added for gfortran >= 4.8
-Wrealloc-lhs
-Wrealloc-lhs-all
# Turn off warnings for passing non-ANSI types to BIND().