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:
parent
27c3e47853
commit
c3c3496ab2
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <android-base/macros.h>
|
||||||
|
|
||||||
#include "expr.h"
|
#include "expr.h"
|
||||||
#include "yydefs.h"
|
#include "yydefs.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
|
@ -121,6 +123,7 @@ arglist: /* empty */ {
|
||||||
$$->emplace_back($1);
|
$$->emplace_back($1);
|
||||||
}
|
}
|
||||||
| arglist ',' expr {
|
| arglist ',' expr {
|
||||||
|
UNUSED($1);
|
||||||
$$->push_back(std::unique_ptr<Expr>($3));
|
$$->push_back(std::unique_ptr<Expr>($3));
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue