diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2011-11-02 16:21:43 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-11-09 16:10:39 -0600 |
commit | bad2d60def0b66079eacb7ef7c11e2f0dd5420c0 (patch) | |
tree | e507ebb417a8351b912515ea40d18439cc330124 /src/build/ifcompiler | |
parent | 849c586994dedbc8b5707997825de249e6843b5d (diff) | |
download | talos-hostboot-bad2d60def0b66079eacb7ef7c11e2f0dd5420c0.tar.gz talos-hostboot-bad2d60def0b66079eacb7ef7c11e2f0dd5420c0.zip |
Initfile - Fix compile warning for yacc
Change-Id: Ice58c7b5609c6a14b48032623f0ef59207484714
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/483
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/ifcompiler')
-rwxr-xr-x | src/build/ifcompiler/initCompiler.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build/ifcompiler/initCompiler.y b/src/build/ifcompiler/initCompiler.y index e706c8e4c..672a2039e 100755 --- a/src/build/ifcompiler/initCompiler.y +++ b/src/build/ifcompiler/initCompiler.y @@ -106,6 +106,7 @@ int scom; /* top is lowest precedent - done last */ +%left ATTRIBUTE_INDEX /* irrelevant precedence, but needed for clean compile */ %left INIT_LOGIC_OR %left INIT_LOGIC_AND %left '|' /* bitwise OR */ @@ -255,9 +256,9 @@ define: INIT_DEFINE INIT_ID '=' expr ';' expr: INIT_INTEGER { $$= new init::Rpn($1,yyscomlist->get_symbols()); } | INIT_ID { $$= new init::Rpn(*($1),yyscomlist->get_symbols()); delete $1; } | INIT_INT64 { $$=new init::Rpn($1,yyscomlist->get_symbols()); } + | expr ATTRIBUTE_INDEX { $1->push_array_index(*($2)); } | expr INIT_LOGIC_OR expr { $$ = $1->push_merge($3,init::Rpn::OR); } | expr INIT_LOGIC_AND expr { $$ = $1->push_merge($3,init::Rpn::AND); } - | expr ATTRIBUTE_INDEX { $1->push_array_index(*($2));} | expr INIT_EQ expr { $$ = $1->push_merge($3,init::Rpn::EQ); } | expr INIT_NE expr { $$ = $1->push_merge($3,init::Rpn::NE); } | expr INIT_LE expr { $$ = $1->push_merge($3,init::Rpn::LE); } |