From 0615d9a03fbb6f3a402342b22195297b5562e254 Mon Sep 17 00:00:00 2001 From: Aaro Koivukangas Date: Wed, 7 May 2025 16:40:08 +0300 Subject: [PATCH] fixed a warning --- c/src/parser.bison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/parser.bison b/c/src/parser.bison index 81c6085..f8c5265 100644 --- a/c/src/parser.bison +++ b/c/src/parser.bison @@ -79,7 +79,7 @@ program : expr_list { expr_copy(parse_result, $1); } ; expr_list : expr expr_list { $$ = $1; $1->next = $2; } - | { $$ = NULL; } + | %empty { $$ = NULL; } ; expr : oper ttk_register TOKEN_COMMA value { $$ = expr_create_instruction($1, $2, $4); }