From 99f1b364b4609a210c2e0bd7d0ab661e7a8a0293 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Wed, 28 Jan 2026 21:47:51 +0100 Subject: [PATCH] Fix compilation errors reported by GCC 15.2 --- src/doc.txt | 2 +- src/zmac.y | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/doc.txt b/src/doc.txt index 4f94aad..467d7aa 100644 --- a/src/doc.txt +++ b/src/doc.txt @@ -1423,7 +1423,7 @@ Bruce Norskog originally wrote zmac in 1978. Updates and bugfixes over the years by John Providenza, Colin Kelley, and more recently by Russell Marks, Mark RISON, Chris Smith, -Matthew Phillips and Tim Mann. +Matthew Phillips, Tim Mann and Roman Standzikowski. Extensive modifications for cycle counting, multiple output formats, ".rel" output, 8080 mode and older assembler compatibilty were written diff --git a/src/zmac.y b/src/zmac.y index 395cf2a..5690638 100644 --- a/src/zmac.y +++ b/src/zmac.y @@ -236,6 +236,8 @@ * xh, xl, yh, yl, hx, lx, hy, ly alternates for ixh, ixy, iyh, iyl. * * gwp 21-1-24 %% expansion in macro to improve MRAS compatibility. + * + * rhs 28-1-26 Fix compilation errors reported by GCC 15.2. */ #if defined(__GNUC__) @@ -742,7 +744,7 @@ void putout(int value); int outrec; int outlen; unsigned char outbuf[1024 * 1024]; -void bookmark(); +void bookmark(int delay); void listfrombookmark(); @@ -5925,7 +5927,7 @@ int nextchar() { int c, ch; unsigned char *p; - char *getlocal(); + char *getlocal(int c, int n); if (peekc != NOPEEK) { c = peekc;