Merge "Suppress the unused variable warning in parser.yy"

This commit is contained in:
Treehugger Robot 2017-03-28 21:21:05 +00:00 committed by Gerrit Code Review
commit b9b03a282b

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));
}
;