Skip to content

Commit 98f7679

Browse files
committed
Correct yylex() prototype and add early. (Silences compile warning.)
1 parent 5f09ab7 commit 98f7679

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mccode/src/instrument.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <math.h>
2727
#include <string.h>
2828
#include <stdio.h>
29+
int yylex(void *yylval);
2930

3031
#include "mccode.h"
3132

@@ -67,7 +68,7 @@
6768
/* typedef struct List_header * List; */
6869
/* typedef struct Symbol_table * Symtab; */
6970
/* typedef struct instr_def * instr_ptr_t; */
70-
int yylex();
71+
int yylex(void *yylval);
7172
int yyerror(const char *s);
7273
List list_cat(List, List);
7374
Symtab symtab_cat(Symtab, Symtab);

0 commit comments

Comments
 (0)