aboutsummaryrefslogtreecommitdiffstats
path: root/edify
diff options
context:
space:
mode:
authorTianjie Xu2017-03-28 13:49:15 -0500
committerTianjie Xu2017-03-28 14:44:10 -0500
commitc3c3496ab2e9bb26b12465bd723e11261e2afb38 (patch)
treef452c31bf896737b88979a9fbb9e87c4fe3a4fd4 /edify
parent27c3e47853b27d08fb6b1e250212b785c915c1a6 (diff)
downloadplatform-bootable-recovery-c3c3496ab2e9bb26b12465bd723e11261e2afb38.tar.gz
platform-bootable-recovery-c3c3496ab2e9bb26b12465bd723e11261e2afb38.tar.xz
platform-bootable-recovery-c3c3496ab2e9bb26b12465bd723e11261e2afb38.zip
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
Diffstat (limited to 'edify')
-rw-r--r--edify/parser.yy3
1 files changed, 3 insertions, 0 deletions
diff --git a/edify/parser.yy b/edify/parser.yy
index 97205fe3..b1685eb1 100644
--- a/edify/parser.yy
+++ b/edify/parser.yy
@@ -23,6 +23,8 @@
23#include <string> 23#include <string>
24#include <vector> 24#include <vector>
25 25
26#include <android-base/macros.h>
27
26#include "expr.h" 28#include "expr.h"
27#include "yydefs.h" 29#include "yydefs.h"
28#include "parser.h" 30#include "parser.h"
@@ -121,6 +123,7 @@ arglist: /* empty */ {
121 $$->emplace_back($1); 123 $$->emplace_back($1);
122} 124}
123| arglist ',' expr { 125| arglist ',' expr {
126 UNUSED($1);
124 $$->push_back(std::unique_ptr<Expr>($3)); 127 $$->push_back(std::unique_ptr<Expr>($3));
125} 128}
126; 129;