[virglrenderer-devel] [PATCH 21/21] configure.ac: Add more warning flags
Gert Wollny
gert.wollny at collabora.com
Fri Jun 1 08:48:08 UTC 2018
Adding -Wextra should give everyone an incentive to keep the code clean in the
future and -Werror=int-to-pointer-cast is there that this type of cast is really
not done by accident.
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index b719188..24131b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,9 +29,11 @@ AC_CHECK_PROGS([PYTHON], [python2 python python3])
AX_CODE_COVERAGE
AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"])
+AX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
AX_CHECK_COMPILE_FLAG([-Werror=implicit-function-declaration], [CFLAGS="$CFLAGS -Werror=implicit-function-declaration"])
AX_CHECK_COMPILE_FLAG([-Werror=missing-prototypes], [CFLAGS="$CFLAGS -Werror=missing-prototypes"])
AX_CHECK_COMPILE_FLAG([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
+AX_CHECK_COMPILE_FLAG([-Wint-to-pointer-cast], [CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"])
AC_MSG_CHECKING([for native Win32])
case "$host_os" in
--
2.17.0
More information about the virglrenderer-devel
mailing list