diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2014-07-25 17:41:50 +0200 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-11-25 08:29:52 -0500 |
commit | 17c292bf03bccf4e808835f96f1260e6dd611b43 (patch) | |
tree | 7bda69680f38c02386604e7199bdb493fcb1084f /tests/bison_yylval_parser.y | |
parent | fef17765ca418361dd1260ae012d8f4a15d7f93c (diff) |
Fix `implicit function declaration` warnings in tests
Diffstat (limited to 'tests/bison_yylval_parser.y')
-rw-r--r-- | tests/bison_yylval_parser.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bison_yylval_parser.y b/tests/bison_yylval_parser.y index a6ebfd3..ca8c8da 100644 --- a/tests/bison_yylval_parser.y +++ b/tests/bison_yylval_parser.y @@ -32,9 +32,12 @@ #include <stdlib.h> #include <string.h> #include "config.h" +#include "parser.h" +#include "scanner.h" #define YYERROR_VERBOSE 1 +int yyerror(void* scanner, const char* msg); /* A dummy function. A check against seg-faults in yylval->str. */ int process_text(char* s) { @@ -74,7 +77,7 @@ starttag: LT TAGNAME GT { process_text($2); free($2);} ; endtag: LTSLASH TAGNAME GT { process_text($2);free($2);} ; %% -int yyerror(void* scanner, char* msg) { +int yyerror(void* scanner, const char* msg) { (void)scanner; fprintf(stderr,"%s\n",msg); return 0; |