PATCH: djasm: fix sortsyms() prototype for gcc 15
From
J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]@djgpp@delorie.com to
djgpp on Thu Nov 13 19:29:38 2025
From Newsgroup: comp.os.msdos.djgpp
Hi all,
With gcc 15 now compiling in C23 mode by default, it no longer allows incomplete function prototypes (an empty parameter list is now the same
as (void), like in C++). This is used for one function in djasm, which
now fails to compile. The small patch below is all that's needed to fix
it. For the other hostbin utilities, no changes are necessary.
--- a/src/djasm/djasm.y
+++ b/src/djasm/djasm.y
@@ -179,7 +179,7 @@ void emits(Symbol *s, int offset, int rel);
void modrm(int mod, int reg, int rm);
void reg(int reg);
void addr32(int sib);
-void sortsyms();
+void sortsyms(int (*)(void const *, void const *));
int istemp(char *symname, char which);
int islocal(char *symname);
--- Synchronet 3.21a-Linux NewsLink 1.2