From 0d784d5a50fabf73f348cba7cd4620841f112074 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 6 May 2024 19:14:22 -0500 Subject: [PATCH] Issue #2512 - Part 2 - Fix autoconf basic compiler test. GCC 14 and Clang 16 changed implicit-int from warning to error. Causing the compiler test from 1996 to fail in C99 mode. --- build/autoconf/acspecific.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/autoconf/acspecific.m4 b/build/autoconf/acspecific.m4 index 5c6f1c9e5f..73ae2109c0 100644 --- a/build/autoconf/acspecific.m4 +++ b/build/autoconf/acspecific.m4 @@ -202,7 +202,7 @@ AC_DEFUN(AC_PROG_CC_WORKS, [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_C -AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) +AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cc_works) if test $ac_cv_prog_cc_works = no; then