Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
parser: Annotate unused arguments
  • Loading branch information
donald committed May 5, 2022
1 parent 5e3cc57 commit bbd0b5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser.y
Expand Up @@ -53,6 +53,7 @@ bool: '(' bool ')' { $$ = $2; };
#include "xmalloc.h"

int yylex (YYSTYPE *lvalp, YYLTYPE *llocp, struct parser_context *ctx) {
(void)llocp;
int c = ctx->input[ctx->pos];

while (c == ' ' || c == '\t')
Expand Down Expand Up @@ -88,6 +89,9 @@ int yylex (YYSTYPE *lvalp, YYLTYPE *llocp, struct parser_context *ctx) {
#include <stdio.h>

void yyerror (YYLTYPE *locp, struct parser_context *ctx, char const *s) {
(void)locp;
(void)ctx;
(void)s;
}


0 comments on commit bbd0b5c

Please sign in to comment.