Skip to content

Commit 2540de3

Browse files
authored
Support C23 Build (gcc15) by prototyping function pointers (#38)
1 parent 874bcb7 commit 2540de3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dis68/functbl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11

22
/* top nibble classifications */
3-
void (*topnib[])() = {imm, moveb, movel, movew, misc, addq, bsr,
3+
void (*topnib[])(void) = {imm, moveb, movel, movew, misc, addq, bsr,
44
moveq, or, sub, huh, cmp, and, add, shift, huh};
55

6-
void (*modetbl[])() = {drd, ard, ri, piri, pdri, rio, irio, spadd};
7-
void (*spaddtbl[])() = {as, al, relo, relio, aimm, as, as, as};
6+
void (*modetbl[])(int) = {drd, ard, ri, piri, pdri, rio, irio, spadd};
7+
void (*spaddtbl[])(void) = {as, al, relo, relio, aimm, as, as, as};
88

99
char *imm_mne[] = {"ori", "andi", "subi", "addi",
1010
"huh", "eori", "cmpi", "huh"};
1111
char *bittyp[] = {"btst ", "bchg ", "bclr ", "bset "};
1212

13-
void (*misctbl[])() = {negx, clr, neg, not, nbcd, tst, movem, trap};
13+
void (*misctbl[])(void) = {negx, clr, neg, not, nbcd, tst, movem, trap};
1414
char *msc_mne[] = {"reset", "nop", "stop", "rte",
1515
"rtd", "rts", "trapv", "rtr"};
1616

0 commit comments

Comments
 (0)