Merge "Suppress the unused variable warning in parser.yy" am: b9b03a282b am: 05c111b90b
am: 6835d52c7e
Change-Id: Ibb0bc1ccb3abf0a9ad82eea38b28e882a89e2f06
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user