On 8/20/23 15:16, Torbjörn Granlund wrote:
Dennis Clarke <[email protected]> writes:

   Pretty sure that should be "int main (void) { return 0; } ".

Surely that is not how the implicit main() declaration looks?  A new
compiler warning is warranted.  So add (int argc, const char **argv)!
Oops, unused parameters, darn.  We need to make a fake dependency on
these unused parameters...

Alternatively, we could develop GMP.

   How hard can it be to patch that in the configure.ac autotools stuff?

It is pointless to work around compiler idiosyncrasies without a plan,
and without clear indications that it solves a real problem.


Here we are well into 2025 and will this ever be fixed ?

conftest.c:2:10: error: a function declaration without a prototype is deprecated in all versions
 of C [-Werror,-Wstrict-prototypes]
    2 | int main () { return 0; }
      |          ^
      |           void
1 error generated.
configure:5985: $? = 1
failed program was:

int main () { return 0; }
configure:7072: result: no
configure:7310: error: could not find a working compiler, see config.log for details


Really does not matter if this is GCC or LLVM/Clang anymore.


--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
_______________________________________________
gmp-bugs mailing list
[email protected]
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to