summaryrefslogtreecommitdiffstats
path: root/config/gnu-werrors-general
diff options
context:
space:
mode:
Diffstat (limited to 'config/gnu-werrors-general')
-rw-r--r--config/gnu-werrors-general24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/gnu-werrors-general b/config/gnu-werrors-general
new file mode 100644
index 0000000..d0e272a
--- /dev/null
+++ b/config/gnu-werrors-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