1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
  
     | 
    
      From: Colin Watson <cjwatson@debian.org>
Date: Wed, 14 Aug 2024 11:22:38 +0100
Subject: Don't rely on implicit declarations
These are errors in GCC 14.
Bug-Debian: https://bugs.debian.org/1075363
Last-Update: 2024-08-14
---
 sorcerer/gen.c        | 2 +-
 support/genmk/genmk.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/sorcerer/gen.c b/sorcerer/gen.c
index 4a67a1e..f8fcbd0 100644
--- a/sorcerer/gen.c
+++ b/sorcerer/gen.c
@@ -56,7 +56,7 @@
 #include "sym.h"
 #include "proto.h"
 
-static outfile = -1;
+static int outfile = -1;
 static char *current_rule;
 static ListNode *labels_for_func = NULL;
 static AST *whichRule;
diff --git a/support/genmk/genmk.c b/support/genmk/genmk.c
index f07c925..7036afe 100644
--- a/support/genmk/genmk.c
+++ b/support/genmk/genmk.c
@@ -73,13 +73,14 @@ void mk(char *project, char **files, int n, int argc, char **argv);
 void pfiles(char **files, int n, char *suffix);
 void fatal(char *msg);
 void warn(char *msg);
+void pclasses(char **classes, int n, char *suffix);
 #else
 void help();
 void mk();
 void pfiles();
 void fatal();
 void warn();
-void pclasses(char **classes, int n, char *suffix);
+void pclasses();
 #endif
 
 typedef struct _Opt {
 
     |