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:
6
parser.y
6
parser.y
@ -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; }
|
||||
|
Reference in New Issue
Block a user