Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3c3496a authored by Tianjie Xu's avatar Tianjie Xu
Browse files

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
parent 27c3e478
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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));
}
;