fix(gawk): patch mpfr callback prototype to match mpfr function signatures

This commit is contained in:
vxtls 2026-03-02 08:09:54 -05:00
parent 6b37393704
commit c37acaaebe

View file

@ -0,0 +1,15 @@
SPDX-License-Identifier: GPL-3.0-or-later
Fix MPFR callback pointer prototype for modern compilers.
--- gawk-4.2.1/mpfr.c
+++ gawk-4.2.1/mpfr.c
@@ -689,7 +689,7 @@
static inline NODE *
do_mpfr_func(const char *name,
- int (*mpfr_func)(), /* putting argument types just gets the compiler confused */
+ int (*mpfr_func)(mpfr_ptr, mpfr_srcptr, mpfr_rnd_t),
int nargs)
{
NODE *t1, *res;