From 54e8b9b96e4553b4a05e95612d0a91677e85f9e8 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 29 Jul 2018 15:24:59 +0200 Subject: build: enable -Wcast-function-type Where it's easy add dummy args to match the cast; where the target is a subset just prevent the warning with a cast to void*. Provide a real copy function for the boxed type code in regress_foo. This code is never executed afaics, but why not. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 80475973..52536129 100644 --- a/configure.ac +++ b/configure.ac @@ -65,7 +65,7 @@ AX_COMPILER_FLAGS(,, [yes]) # These get triggered a lot, not worth it imo, but feel free to fix them AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches -Wno-switch-enum]) # FIXME: Fix the warnings and remove the flags -AX_APPEND_COMPILE_FLAGS([-Wno-redundant-decls -Wno-switch-default -Wno-shadow -Wno-deprecated-declarations -Wno-cast-function-type -Wno-type-limits]) +AX_APPEND_COMPILE_FLAGS([-Wno-redundant-decls -Wno-switch-default -Wno-shadow -Wno-deprecated-declarations -Wno-type-limits]) AX_APPEND_COMPILE_FLAGS([-Wno-implicit-fallthrough -Wno-sign-compare]) WARN_CFLAGS_PYTHON="$WARN_CFLAGS" -- cgit v1.2.1