From e4924c6eca0ed9176e099d4bc92d6e55f251f0dc Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Tue, 18 Nov 2008 14:34:06 -0500 Subject: [PATCH] Add a missing forward decl in lexer.l, add void in () in some places in oil.y --- src/lexer.l | 1 + src/oil.y | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lexer.l b/src/lexer.l index 0ee48a8..0bd8da2 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -82,6 +82,7 @@ ick_bool re_send_token = ick_FALSE; int lexer(void); static int myatoi(const char *text); +void yyerror(const char *errtype); #define SETLINENO \ {if (stbeginline == 0) stbeginline = iyylineno;\ diff --git a/src/oil.y b/src/oil.y index e01f290..6a247b1 100644 --- a/src/oil.y +++ b/src/oil.y @@ -98,8 +98,8 @@ char optname[MAXOPTNAMELEN]="undefined"; typedef struct ickstype *YYSTYPE; -void splitend(); -void splitstart(); +void splitend(void); +void splitstart(void); void treedepthup(YYSTYPE, mybool); void treefree(YYSTYPE); @@ -708,7 +708,7 @@ int countungetc(int c, FILE* f) return c; } -void splitstart() +void splitstart(void) { static char fname[]="oilout00.c"; if(filenumber>255) @@ -730,7 +730,7 @@ void splitstart() " node *tp;\n", filenumber); } -void splitend() +void splitend(void) { /* Disabling warnings about unused variables. gcc will optimize this right out, and in any case the raise(SIGSEGV) will be unreachable (but will -- 2.43.0