Suppress the unused variable warning in parser.yy

The warning says: bootable/recovery/edify/parser.yy:123.3-9: warning:
unused value: $1

Bug: 36678950
Test: mma
Change-Id: Ic734c416a5a8f62fb5e516669102c1d2b4ad5083
This commit is contained in:
Tianjie Xu 2017-03-28 11:49:15 -07:00
parent 27c3e47853
commit c3c3496ab2

View file

@ -23,6 +23,8 @@
#include <string>
#include <vector>
#include <android-base/macros.h>
#include "expr.h"
#include "yydefs.h"
#include "parser.h"
@ -121,6 +123,7 @@ arglist: /* empty */ {
$$->emplace_back($1);
}
| arglist ',' expr {
UNUSED($1);
$$->push_back(std::unique_ptr<Expr>($3));
}
;