1From 542c6f25327587d5a6bffb8a45b457ec85dcf8e1 Mon Sep 17 00:00:00 2001 2From: Florian Weimer <fweimer@redhat.com> 3Date: Tue, 19 Dec 2023 13:24:50 +0100 4Subject: [PATCH 3/3] configure: Further defang the -Werror check 5 6Incompatible pointer types are actually errors (in the sense 7that they are invalid C). Compilers have merely tolerated them as 8warnings for backwards compatibility. This is changing with Clang 16 9and GCC 14, so relax the check a little. 10 11Upstream-Status: Submitted [https://github.com/fvwmorg/fvwm/pull/100] 12Signed-off-by: Khem Raj <raj.khem@gmail.com> 13--- 14 configure.ac | 5 ++--- 15 1 file changed, 2 insertions(+), 3 deletions(-) 16 17diff --git a/configure.ac b/configure.ac 18index c9fcede6..2e9615b2 100644 19--- a/configure.ac 20+++ b/configure.ac 21@@ -220,9 +220,8 @@ AC_MINIX 22 23 # catch -Werror and similar options when running configure 24 AC_TRY_COMPILE([#include <stdio.h>], 25-[int i; int *p; char *c; 26- switch (*p = p = *c) { case 0: printf("%Q", c, p); } 27- *c = &i; c = p; 28+[int unused; int *p; char *c; 29+ printf("%Q", c, p); 30 while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1)); 31 ], , AC_MSG_ERROR(" 32 configure is not able to compile programs with warnings. Please 33-- 342.45.0 35 36