mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
Adds -Warray-temporaries to the developer warnings (#2385)
These generate a LOT of noise that we are not going to address anytime soon.
This commit is contained in:
parent
d326f6fae8
commit
83f81a6422
@ -79,6 +79,11 @@ if (NOT MSVC AND NOT MINGW)
|
|||||||
# Append more extra warning flags that only gcc 4.8+ knows about
|
# Append more extra warning flags that only gcc 4.8+ knows about
|
||||||
if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 4.8)
|
if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 4.8)
|
||||||
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-4.8")
|
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-4.8")
|
||||||
|
if (HDF5_ENABLE_DEV_WARNINGS)
|
||||||
|
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-developer-4.8")
|
||||||
|
else ()
|
||||||
|
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-no-developer-4.8")
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Append more extra warning flags that only gcc 4.9+ knows about
|
# Append more extra warning flags that only gcc 4.9+ knows about
|
||||||
|
@ -159,6 +159,8 @@ if test "X-gfortran" = "X-$f9x_vendor"; then
|
|||||||
# gfortran >= 4.8
|
# gfortran >= 4.8
|
||||||
if test $f9x_vers_major -ge 5 -o $f9x_vers_major -eq 4 -a $f9x_vers_minor -ge 8; then
|
if test $f9x_vers_major -ge 5 -o $f9x_vers_major -eq 4 -a $f9x_vers_minor -ge 8; then
|
||||||
H5_FCFLAGS="$H5_FCFLAGS $(load_gnu_arguments gfort-4.8)"
|
H5_FCFLAGS="$H5_FCFLAGS $(load_gnu_arguments gfort-4.8)"
|
||||||
|
DEVELOPER_WARNING_FCFLAGS="$DEVELOPER_WARNING_FCFLAGS $(load_gnu_arguments gfort-developer-4.8)"
|
||||||
|
NO_DEVELOPER_WARNING_FCFLAGS="$NO_DEVELOPER_WARNING_FCFLAGS $(load_gnu_arguments gfort-no-developer-4.8)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gfortran 4.9 (nothing new)
|
# gfortran 4.9 (nothing new)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# warning flags added for gfortran >= 4.4
|
# warning flags added for gfortran >= 4.4
|
||||||
-Warray-temporaries
|
|
||||||
-Wintrinsics-std
|
-Wintrinsics-std
|
||||||
|
|
||||||
# warning flag added for gfortran >= 4.5
|
# warning flag added for gfortran >= 4.5
|
||||||
|
3
config/gnu-warnings/gfort-developer-4.8
Normal file
3
config/gnu-warnings/gfort-developer-4.8
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# warning flags added for gfortran >= 4.4
|
||||||
|
-Warray-temporaries
|
||||||
|
|
3
config/gnu-warnings/gfort-no-developer-4.8
Normal file
3
config/gnu-warnings/gfort-no-developer-4.8
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# warning flags added for gfortran >= 4.4
|
||||||
|
-Wno-array-temporaries
|
||||||
|
|
Loading…
Reference in New Issue
Block a user