diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-04-20 21:03:08 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-04-20 21:03:08 (GMT) |
commit | 5c87b06d9d101306ff7ac956ff34798c539ca3fc (patch) | |
tree | 9f5f2e7aeb2f96b090671a201bcf024db2ef680b /config/gnu-flags | |
parent | 7ba692badf9a1bafb9d3b2f72efbbdf773b5932a (diff) | |
download | hdf5-5c87b06d9d101306ff7ac956ff34798c539ca3fc.zip hdf5-5c87b06d9d101306ff7ac956ff34798c539ca3fc.tar.gz hdf5-5c87b06d9d101306ff7ac956ff34798c539ca3fc.tar.bz2 |
Don't add general warnings flags for unsupported old versions of gcc and
g++ (older than gcc/g++ 4.2).
Correct gnu-cxxflags to determine warnings flags to be added based on
C++ compiler version instead of C compiler version.
Diffstat (limited to 'config/gnu-flags')
-rw-r--r-- | config/gnu-flags | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index ad07552..dba9324 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -188,8 +188,10 @@ if test "X-gcc" = "X-$cc_vendor"; then # General # ########### - H5_CFLAGS="$H5_CFLAGS $(load_gnu_arguments general)" - H5_ECFLAGS="$H5_ECFLAGS $(load_gnu_arguments error-general)" + if test $cc_vers_major -eq 4 -a $cc_vers_minor -ge 2 -o $cc_vers_major -gt 4; then + H5_CFLAGS="$H5_CFLAGS $(load_gnu_arguments general)" + H5_ECFLAGS="$H5_ECFLAGS $(load_gnu_arguments error-general)" + fi ###################### # Developer warnings # |