diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-04-20 21:03:08 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-04-21 00:36:40 (GMT) |
commit | 1862abdd0512d4f2505b3807fedd20f6ccedb31f (patch) | |
tree | 252e33a442cc755a1d1c719f1e62044d741f6794 /config/gnu-flags | |
parent | 6524e17885b939554beb63d7b9df10259ef4d1e5 (diff) | |
download | hdf5-1862abdd0512d4f2505b3807fedd20f6ccedb31f.zip hdf5-1862abdd0512d4f2505b3807fedd20f6ccedb31f.tar.gz hdf5-1862abdd0512d4f2505b3807fedd20f6ccedb31f.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 # |