From fb43a1012526e8ca9888bbdf81cd2219e5a32474 Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 10 Nov 2023 14:45:44 -0800 Subject: [PATCH] configure: fix configure with modern clang Checking for a C compiler ... /usr/lib/ccache/bin/clang Checking clang can produce executables ... Fail n>:2:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 2 | main() {exit(0);} | ^ | int 1 error generated. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5f02c1d..7165a82 100755 --- a/configure +++ b/configure @@ -148,7 +148,7 @@ else fi echo -n "Checking $(basename "${CC}") can produce executables ... " -echo -e '#include \nmain() {exit(0);}' | \ +echo -e '#include \nint main(void) {exit(0);}' | \ if ${CC} -xc -o /dev/null - 2>>config.log; then echo "Ok" else