aports/community/fvwm/gcc14.patch
2024-09-11 07:39:06 +00:00

24 lines
768 B
Diff

ref: https://github.com/fvwmorg/fvwm/pull/106
diff --git a/configure.ac b/configure.ac
index 97ab9e7..a5452e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,17 +218,6 @@ fi
AC_ISC_POSIX
AC_MINIX
-# catch -Werror and similar options when running configure
-AC_TRY_COMPILE([#include <stdio.h>],
-[int i; static j; int *p; char *c;
- switch (*p = p = *c) { case 0: printf("%Q", c, p); }
- *c = &i; c = p;
- while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
-], , AC_MSG_ERROR("
-configure is not able to compile programs with warnings. Please
-remove all offending options like -Werror from the CFLAGS and
-CPPFLAGS variables and run configure again."))
-
# check size of some types
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $X_CFLAGS"