summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/error-5
diff options
context:
space:
mode:
authorhdftest <hdftest@hdfgroup.org>2020-04-26 19:13:37 (GMT)
committerhdftest <hdftest@hdfgroup.org>2020-04-26 19:13:37 (GMT)
commit57b1f0b994bb90f5654093d90620bd7e36ebefa7 (patch)
tree3b09c2b4c7c53be66499854eaf710265c9503fe3 /config/gnu-warnings/error-5
parent507d8f3cdf04ddad0fb7cdb92de033fa70d07f47 (diff)
parent7015ea5ec07e5bec11c6fed75dbe34d48428cf2b (diff)
downloadhdf5-57b1f0b994bb90f5654093d90620bd7e36ebefa7.zip
hdf5-57b1f0b994bb90f5654093d90620bd7e36ebefa7.tar.gz
hdf5-57b1f0b994bb90f5654093d90620bd7e36ebefa7.tar.bz2
Merge branch 'hdf5_1_8' of ssh://bitbucket.hdfgroup.org:7999/~hdftest/hdf5_hft into hdf5_1_8
Diffstat (limited to 'config/gnu-warnings/error-5')
-rw-r--r--config/gnu-warnings/error-512
1 files changed, 12 insertions, 0 deletions
diff --git a/config/gnu-warnings/error-5 b/config/gnu-warnings/error-5
new file mode 100644
index 0000000..f7e1138
--- /dev/null
+++ b/config/gnu-warnings/error-5
@@ -0,0 +1,12 @@
+-Werror=incompatible-pointer-types
+#
+# 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