diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-04-27 18:18:32 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-04-27 18:18:32 (GMT) |
commit | f41723a22e85b5c7673d33c9f934c3f5a45a79fe (patch) | |
tree | ea285a8df347935e934838a77bfb9b7307e8fe1b /config/gnu-warnings/cxx-error-5 | |
parent | e479d78aba77b63cc5a5d1d3d0737f2fa76c86d3 (diff) | |
parent | 93b69eaec2e21543269575fb79bf8f25b74f96d3 (diff) | |
download | hdf5-f41723a22e85b5c7673d33c9f934c3f5a45a79fe.zip hdf5-f41723a22e85b5c7673d33c9f934c3f5a45a79fe.tar.gz hdf5-f41723a22e85b5c7673d33c9f934c3f5a45a79fe.tar.bz2 |
Merge pull request #2526 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_8 to hdf5_1_8
* commit '93b69eaec2e21543269575fb79bf8f25b74f96d3':
Restrict errors to gcc 4.8 and above.
Move ADD_H5_FLAGS macro from *CompilerFlags.cmake files to config/cmake_ext_mod/HDFMacros.cmake for common use.
Fix NoFilter build
TRILAB-244 separate CXX warnings and errors from C
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-warnings/cxx-error-5')
-rw-r--r-- | config/gnu-warnings/cxx-error-5 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/gnu-warnings/cxx-error-5 b/config/gnu-warnings/cxx-error-5 new file mode 100644 index 0000000..8cc8c9d --- /dev/null +++ b/config/gnu-warnings/cxx-error-5 @@ -0,0 +1,11 @@ +# +# In GCC 4.4.7, the compiler gripes about shadowed global +# declarations when a local variable uses the name of a +# function that's in a system header file. For some reason, +# later versions of GCC (e.g., 5.2.0) don't complain about +# the shadowed globals. Maybe later versions are less fussy? +# Anyway, the shadowing seems to be harmless, and GCC 4.4.7 +# is not a supported compiler, so let us promote shadowed globals +# warnings to errors only for GCC 5 and later. +# +-Werror=shadow |