diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-04-27 17:10:30 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-04-27 17:10:30 (GMT) |
commit | c034efb0e2be94627d8c97b488f3b1d18a23ff2f (patch) | |
tree | a7ba7522260e5362cebe59f7d2cd3216d4a14012 /config/gnu-warnings/cxx-error-5 | |
parent | 844400155918e931b16b69c59b8b76d4121005ac (diff) | |
parent | 68adfb86d056af222ab80c349c56e0bd1d183f09 (diff) | |
download | hdf5-c034efb0e2be94627d8c97b488f3b1d18a23ff2f.zip hdf5-c034efb0e2be94627d8c97b488f3b1d18a23ff2f.tar.gz hdf5-c034efb0e2be94627d8c97b488f3b1d18a23ff2f.tar.bz2 |
Merge pull request #2529 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10
* commit '68adfb86d056af222ab80c349c56e0bd1d183f09':
Merge pull request #2537 in HDFFV/hdf5 from ~DYOUNG/werror:fix-werrors to develop
Move ADD_H5_FLAGS macro from *CompilerFlags.cmake files to config/cmake_ext_mod/HDFMacros.cmake for common use.
Restrict errors to gcc 4.8 and above.
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 |