From 093b4526ad36b384f684ac353f8d53dfee2f0a94 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 11 Dec 2022 18:53:12 -0800 Subject: [PATCH] fix warning: a function declaration without a prototype is deprecated in all versions of C remove extraneous declaration of dispatch() (now covered by xcdefs.h) --- src/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index a1c25cc..e84a177 100644 --- a/src/main.c +++ b/src/main.c @@ -243,8 +243,6 @@ extern const time_t MDate; extern int nokbdflag; extern int nomouseflag; #ifdef DOS -extern void dispatch(); - int dosdisplaymode = 0; int twobuttonflag = FALSE; int eurokbd = TRUE; /* Assume eurokbd by default. */ @@ -656,7 +654,7 @@ int main(int argc, char *argv[]) /* */ /************************************************************************/ -void start_lisp() { +void start_lisp(void) { DLword *freeptr, *next68k; /*******************************/ @@ -699,7 +697,7 @@ void start_lisp() { dispatch(); } -void print_info_lines() { +void print_info_lines(void) { #if (RELEASE == 200) printf("Emulator for Medley release 2.0\n"); #elif (RELEASE == 201)