1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix bison empty rule warnings (#433, partial fix)

This commit is contained in:
Nicolas Williams
2014-07-14 15:39:43 -05:00
parent 2bb9fc5dda
commit 8c3d503d54

View File

@ -218,7 +218,7 @@ FuncDefs {
}
FuncDefs:
/* empty */ {
%empty {
$$ = gen_noop();
} |
FuncDef FuncDefs {
@ -484,7 +484,7 @@ FORMAT QQSTRING_START { $<literal>$ = $1; } QQString QQSTRING_END {
QQString:
/* empty */ {
%empty {
$$ = gen_const(jv_string(""));
} |
QQString QQSTRING_TEXT {
@ -651,7 +651,7 @@ Term '[' error ']' { $$ = $1; } |
'{' error '}' { $$ = gen_noop(); }
MkDict:
{
%empty {
$$=gen_noop();
} |
MkDictPair { $$ = $1; }