From 49bb971fdcb7c54c5044f5854de3c177a6f41d1f Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 17 Jan 2016 13:21:15 -0800 Subject: fix C code in yacc file to be pass default compiler warnings --- test/YACC/live.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/YACC/live.py b/test/YACC/live.py index d567ec3..f6733da 100644 --- a/test/YACC/live.py +++ b/test/YACC/live.py @@ -61,20 +61,23 @@ foo.CFile(target = 'not_foo', source = 'foo.y') yacc = r""" %%{ #include +extern int yyparse(); +int yyerror(char *s); +int yylex(); -main() +int main() { - yyparse(); + return yyparse(); } -yyerror(s) +int yyerror(s) char *s; { fprintf(stderr, "%%s\n", s); return 0; } -yylex() +int yylex() { int c; -- cgit v0.12