Skip to content

Build failure on Fedora 42/x86_64 and GCC 15 #79

Description

@bdwheele

Building on the aforementioned OS/compiler combo fails with some forward declarations not matching their argument lists. Changing the declaration to match results in a successful build:

$ git diff
diff --git a/third_party/zmac/zmac.y b/third_party/zmac/zmac.y
index 81dea03..e0ad533 100644
--- a/third_party/zmac/zmac.y
+++ b/third_party/zmac/zmac.y
@@ -733,7 +733,7 @@ void putout(int value);
 int outrec;
 int outlen;
 unsigned char outbuf[1024 * 1024];
-void bookmark();
+void bookmark(int);
 void listfrombookmark();
 
 
@@ -5820,7 +5820,7 @@ int nextchar()
 {
        int c, ch;
        unsigned char *p;
-       char *getlocal();
+       char *getlocal(int, int);
 
        if (peekc != NOPEEK) {
                c = peekc;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions