Mercurial > octave-libgccjit
comparison libinterp/parse-tree/oct-parse.in.yy @ 18927:09eb8a2ddb02
eliminate some unused parameter warnings in parser functions
* parse.in.yy, parse.h (octave_base_parser::make_superclass_ref,
octave_base_parser::make_meta_class_query): Eliminate unused line and
column number parameters.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 Jul 2014 19:55:30 -0400 |
parents | f958e8cd6348 |
children |
comparison
equal
deleted
inserted
replaced
18926:cc8aaf9c9e33 | 18927:09eb8a2ddb02 |
---|---|
486 : SUPERCLASSREF | 486 : SUPERCLASSREF |
487 { | 487 { |
488 std::string method_nm = $1->superclass_method_name (); | 488 std::string method_nm = $1->superclass_method_name (); |
489 std::string class_nm = $1->superclass_class_name (); | 489 std::string class_nm = $1->superclass_class_name (); |
490 | 490 |
491 $$ = parser.make_superclass_ref | 491 $$ = parser.make_superclass_ref (method_nm, class_nm); |
492 (method_nm, class_nm, | |
493 $1->line (), $1->column ()); | |
494 } | 492 } |
495 ; | 493 ; |
496 | 494 |
497 meta_identifier : METAQUERY | 495 meta_identifier : METAQUERY |
498 { | 496 { |
499 std::string class_nm = $1->text (); | 497 std::string class_nm = $1->text (); |
500 | 498 |
501 $$ = parser.make_meta_class_query (class_nm, $1->line (), | 499 $$ = parser.make_meta_class_query (class_nm); |
502 $1->column ()); | |
503 } | 500 } |
504 ; | 501 ; |
505 | 502 |
506 string : DQ_STRING | 503 string : DQ_STRING |
507 { $$ = parser.make_constant (DQ_STRING, $1); } | 504 { $$ = parser.make_constant (DQ_STRING, $1); } |
3113 lexer.looking_at_parameter_list = false; | 3110 lexer.looking_at_parameter_list = false; |
3114 } | 3111 } |
3115 | 3112 |
3116 tree_funcall * | 3113 tree_funcall * |
3117 octave_base_parser::make_superclass_ref (const std::string& method_nm, | 3114 octave_base_parser::make_superclass_ref (const std::string& method_nm, |
3118 const std::string& class_nm, | 3115 const std::string& class_nm) |
3119 int l, int c) | |
3120 { | 3116 { |
3121 octave_value_list args; | 3117 octave_value_list args; |
3122 | 3118 |
3123 args(1) = class_nm; | 3119 args(1) = class_nm; |
3124 args(0) = method_nm; | 3120 args(0) = method_nm; |
3128 | 3124 |
3129 return new tree_funcall (fcn, args); | 3125 return new tree_funcall (fcn, args); |
3130 } | 3126 } |
3131 | 3127 |
3132 tree_funcall * | 3128 tree_funcall * |
3133 octave_base_parser::make_meta_class_query (const std::string& class_nm, | 3129 octave_base_parser::make_meta_class_query (const std::string& class_nm) |
3134 int l, int c) | |
3135 { | 3130 { |
3136 octave_value_list args; | 3131 octave_value_list args; |
3137 | 3132 |
3138 args(0) = class_nm; | 3133 args(0) = class_nm; |
3139 | 3134 |