summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/error-general
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-23 17:25:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-03-23 17:25:48 (GMT)
commit477c96f06f891b2f6477b8f5bc8a979c5eb90074 (patch)
tree15062e70c821d51af681575bde15a1511250ab1d /config/gnu-warnings/error-general
parent13da6d137fa2f00cc5363414b39e441c19140b81 (diff)
parente916acd018d5a307e7690a7978a1b73e83508f2b (diff)
downloadhdf5-477c96f06f891b2f6477b8f5bc8a979c5eb90074.zip
hdf5-477c96f06f891b2f6477b8f5bc8a979c5eb90074.tar.gz
hdf5-477c96f06f891b2f6477b8f5bc8a979c5eb90074.tar.bz2
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit 'e916acd018d5a307e7690a7978a1b73e83508f2b': Move the GNU warnings configuration under config/gnu-warnings/ and trim the filename prefixes. Update config/gnu-flags to suit. By default, demote warnings promoted to errors back to warnings. Incorporate the H5_ECFLAGS into the library CFLAGS. Now a bunch of errors will occur. Next commit will demote the warnings promoted to errors back to warnings again. Break out warnings into more files that autoconf and CMake can share. This change temporarily disables the warnings that were promoted to errors, but I will add those warnings back as warnings, not errors, in the next commit.
Diffstat (limited to 'config/gnu-warnings/error-general')
-rw-r--r--config/gnu-warnings/error-general24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/gnu-warnings/error-general b/config/gnu-warnings/error-general
new file mode 100644
index 0000000..d0e272a
--- /dev/null
+++ b/config/gnu-warnings/error-general
@@ -0,0 +1,24 @@
+#
+# HDF5 code should not trigger the following warnings under any
+# circumstances, so ask the compiler to treat them as errors:
+#
+-Werror=bad-function-cast
+-Werror=cast-align
+-Werror=declaration-after-statement
+-Werror=format
+-Werror=implicit-function-declaration
+-Werror=missing-declarations
+-Werror=missing-prototypes
+-Werror=nested-externs
+-Werror=old-style-definition
+-Werror=packed
+-Werror=pointer-sign
+-Werror=pointer-to-int-cast
+-Werror=redundant-decls
+-Werror=strict-prototypes
+-Werror=switch
+-Werror=unused-but-set-variable
+-Werror=unused-function
+-Werror=unused-parameter
+-Werror=unused-variable
+#-Werror=discarded-qualifiers