diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-04-23 19:32:29 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-04-26 03:21:55 (GMT) |
commit | 54764c99be29bb991d95bb7b203f98aaa429115b (patch) | |
tree | f7ff3134aa210a6f60f971e0ca81f05bb5c34763 /config/gnu-warnings/cxx-error-5 | |
parent | 49a76869aa9ad1c4325106de201294dafcd199b5 (diff) | |
download | hdf5-54764c99be29bb991d95bb7b203f98aaa429115b.zip hdf5-54764c99be29bb991d95bb7b203f98aaa429115b.tar.gz hdf5-54764c99be29bb991d95bb7b203f98aaa429115b.tar.bz2 |
TRILAB-244 separate CXX warnings and errors from C
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 |