summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2021-11-13 03:25:14 (GMT)
committerGitHub <noreply@github.com>2021-11-13 03:25:14 (GMT)
commit08b1c6ac3c7d65fe5bfc1d70b68f66d633fa5999 (patch)
treef97bca776f2bc516804a16f7fbad86cde486e675 /config/gnu-warnings
parent4475a12b5fb82bb04cbfc2eebf10481d4a57a3f0 (diff)
downloadhdf5-08b1c6ac3c7d65fe5bfc1d70b68f66d633fa5999.zip
hdf5-08b1c6ac3c7d65fe5bfc1d70b68f66d633fa5999.tar.gz
hdf5-08b1c6ac3c7d65fe5bfc1d70b68f66d633fa5999.tar.bz2
Make it an error if the library implicitly converts from integer to (#1165)
pointer or from pointer to integer (-Werror=int-conversion). Also, make it an error if the library explicitly converts to pointer from an integer of a different size (-Werror=int-to-pointer-cast).
Diffstat (limited to 'config/gnu-warnings')
-rw-r--r--config/gnu-warnings/error-general2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/gnu-warnings/error-general b/config/gnu-warnings/error-general
index 8405c40..31cc26c 100644
--- a/config/gnu-warnings/error-general
+++ b/config/gnu-warnings/error-general
@@ -11,6 +11,8 @@
-Werror=packed
-Werror=pointer-sign
-Werror=pointer-to-int-cast
+-Werror=int-to-pointer-cast
+-Werror=int-conversion
-Werror=redundant-decls
-Werror=strict-prototypes
-Werror=switch