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).
This commit is contained in:
David Young
2021-11-12 21:25:14 -06:00
committed by GitHub
parent 4475a12b5f
commit 08b1c6ac3c

View File

@@ -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