From: Vadim Solomin Date: Thu, 5 Jun 2025 20:16:42 +0000 (+0300) Subject: Fix clang build failure X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_base;p=product%2Fupstream%2Fgmp.git Fix clang build failure Configure misdetects clang as a K&R (i.e. pre-ANSI) C compiler due to insufficient quoting in the autoconf test. Brackets after 'argv' get removed by m4 resulting in the main prototype being int main(int *, char *). That causes just a warning with gcc, but an error with clang. Change-Id: Ie0c34d55382c99762b6be0636d277fd957dac851 --- diff --git a/acinclude.m4 b/acinclude.m4 index 7d5a404..9895e2d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -3764,11 +3764,11 @@ AC_DEFUN([GMP_C_FOR_BUILD_ANSI], AC_CACHE_CHECK([whether build system compiler is ANSI], gmp_cv_c_for_build_ansi, [cat >conftest.c <