configure: Use -Wno-implicit-int in C compiler check.

This commit is contained in:
Jacek Caban 2023-01-10 19:49:05 +01:00
parent bbdc4e9a41
commit babe7f60dd

View File

@ -171,7 +171,11 @@ LDFLAGS=$_SAVE_LDFLAGS
AC_CHECK_PROGS(CC, "${target_alias}-gcc" "${target}-gcc", :)
unset ac_cv_prog_CC
dnl Old autoconf may use implicit int return in tested sources, which is an error in Clang 15.
dnl Append -Wno-implicit-int to CFLAGS to work around the problem.
CFLAGS="$CFLAGS -Wno-implicit-int"
AC_PROG_CC
CFLAGS=$_SAVE_CFLAGS
AC_CHECK_PROGS(CXX, "${target_alias}-g++" "${target}-g++", :)
unset ac_cv_prog_CXX
AC_PROG_CXX