1From cbba378a23410241176d62f3bb43965c044615e3 Mon Sep 17 00:00:00 2001
2From: Florian Weimer <fweimer@redhat.com>
3Date: Thu, 24 Nov 2022 13:06:50 +0100
4Subject: [PATCH 1/3] configure: Do not require support for implicit ints
5
6Implicit ints  have not been part of C since 1999, and future
7compilers will disable support for them by default.  Fortunatenly,
8only one configure check needs adjusting.
9
10Upstream-Status: Submitted [https://github.com/fvwmorg/fvwm/pull/100]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 acinclude.m4 | 2 +-
14 configure.ac | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/acinclude.m4 b/acinclude.m4
18index 8b74ff1e..b66042f9 100644
19--- a/acinclude.m4
20+++ b/acinclude.m4
21@@ -30,7 +30,7 @@ if test "$ac_cv_func_select" = yes; then
22 #ifdef HAVE_SYS_SOCKET_H
23 #include <sys/socket.h>
24 #endif],
25-[extern select ($ac_cv_type_fd_set_size_t,
26+[extern int select ($ac_cv_type_fd_set_size_t,
27  $ac_cv_type_fd_set *,	$ac_cv_type_fd_set *, $ac_cv_type_fd_set *,
28  $ac_type_timeval *);],
29 [ac_found=yes ; break 3],ac_found=no)
30diff --git a/configure.ac b/configure.ac
31index 97ab9e7a..c9fcede6 100644
32--- a/configure.ac
33+++ b/configure.ac
34@@ -220,7 +220,7 @@ AC_MINIX
35
36 # catch -Werror and similar options when running configure
37 AC_TRY_COMPILE([#include <stdio.h>],
38-[int i; static j; int *p; char *c;
39+[int i; int *p; char *c;
40   switch (*p = p = *c) { case 0: printf("%Q", c, p); }
41   *c = &i; c = p;
42   while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
43--
442.45.0
45
46