From a7bd1f7d6fb80cdd3868ad90e903b1be083082d7 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 21 Jan 2025 18:22:42 +0100 Subject: [PATCH] configure: For MinGW build enable -Werror But avoid -Wcast-function-type (from -Wextra) since that is not useful for code using GetProcAddress. Signed-off-by: Frank Lichtenheld --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c4e2623..7588abe 100644 --- a/configure.ac +++ b/configure.ac @@ -77,7 +77,7 @@ AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -test "${GCC}" = "yes" && CFLAGS="${CFLAGS} -pedantic -Wall -Wextra" +test "${GCC}" = "yes" && CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Wno-cast-function-type -Werror" AC_CONFIG_FILES([Makefile plap/Makefile]) AC_OUTPUT