mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
Disable fortran warning (#1014)
This commit is contained in:
parent
1f2bba5255
commit
daeb4454f6
@ -91,9 +91,10 @@ if (NOT MSVC AND NOT MINGW)
|
||||
#endif ()
|
||||
|
||||
# Append more extra warning flags that only gcc 5.x+ knows about
|
||||
if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.0)
|
||||
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-5")
|
||||
endif ()
|
||||
# do not include -Wuse-without-only
|
||||
#if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.0)
|
||||
# ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-5")
|
||||
#endif ()
|
||||
|
||||
# Append more extra warning flags that only gcc 6.x+ knows about
|
||||
if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0)
|
||||
|
@ -161,10 +161,10 @@ if test "X-gfortran" = "X-$f9x_vendor"; then
|
||||
|
||||
# gfortran 4.9 (nothing new)
|
||||
|
||||
# gfortran >= 5
|
||||
if test $f9x_vers_major -ge 5; then
|
||||
H5_FCFLAGS="$H5_FCFLAGS $(load_gnu_arguments gfort-5)"
|
||||
fi
|
||||
# gfortran >= 5 (do not include -Wuse-without-only)
|
||||
#if test $f9x_vers_major -ge 5; then
|
||||
# H5_FCFLAGS="$H5_FCFLAGS $(load_gnu_arguments gfort-5)"
|
||||
#fi
|
||||
|
||||
# gfortran >= 6
|
||||
if test $f9x_vers_major -ge 6; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user