diff options
| author | William Deegan <bill@baddogconsulting.com> | 2016-01-17 13:21:15 -0800 |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2016-01-17 13:21:15 -0800 |
| commit | 49bb971fdcb7c54c5044f5854de3c177a6f41d1f (patch) | |
| tree | 38615d941b97801f4feae21441985d01763e067f /test | |
| parent | d59da7c8d278e1c37f05ce01ca1a14125295ac15 (diff) | |
| download | scons-git-49bb971fdcb7c54c5044f5854de3c177a6f41d1f.tar.gz | |
fix C code in yacc file to be pass default compiler warnings
Diffstat (limited to 'test')
| -rw-r--r-- | test/YACC/live.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/YACC/live.py b/test/YACC/live.py index d567ec38c..f6733da06 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 <stdio.h> +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; |
