Mac OS X build broken (yyerror declaration)
git bisect says 29a347b0fe54572a0caccbc6c0a8c82a66b93cf2 is responsible:
CC attack_parser.o attack_parser.c:1673:7: warning: implicit declaration of function 'yyerror' is invalid in C99 [-Wimplicit-function-declaration] yyerror (source_id, YY_("syntax error")); ^ attack_parser.y:345:13: error: static declaration of 'yyerror' follows non-static declaration static void yyerror(int source_id, const char msg) { / do nothing */ } ^ attack_parser.c:1673:7: note: previous implicit declaration is here yyerror (source_id, YY_("syntax error")); ^ 1 warning and 1 error generated.
Comments (5)
-
-
- attached patch-yyerror.diff
What about this patch instead? I think the compiler warning might still be there; I'll have to test this with Bison.
-
- attached patch-final.diff
I installed Bison and ran into the same problems. I'm glad you reported this! I've attached a patch that should finally fix this.
-
- changed status to resolved
Fixed in f217996, thanks!
-
-
assigned issue to
-
assigned issue to
- Log in to comment
Thanks for the report! I'm not able to reproduce this problem; what version of
yacc
are you using? Does the attached patch fix the issue?