From: Sergio Durigan Junior <sergiodj@debian.org>
Date: Sat, 27 Sep 2025 12:09:50 -0400
Subject: Fix build with GCC 15

This is a hack to fix the build with GCC 15, which complains about the
number of arguments being passed to "function" in nl-import.c's
cldeclFunction.

The idea is to turn the function declaration into a variadic one, so
that GCC accepts various numbers of arguments.  Not pretty, but it
works.

Forwarded: no
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097457
---
 nl-import.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nl-import.c b/nl-import.c
index 9249e54..f4ddcce 100644
--- a/nl-import.c
+++ b/nl-import.c
@@ -247,9 +247,9 @@ return(stuffInteger(cdeclFunction(pCell->contents, args, count)));
 
 UINT cdeclFunction(UINT fAddress, UINT * args, int count)
 {
-UINT (*function)();
+UINT (*function)(...);
 
-function = (UINT (*)())fAddress;
+function = (UINT (*)(...))fAddress;
 
 switch(count)
     {
