# HG changeset patch # User Lasse Schuirmann and Kai T. Ohlhus # Date 1393229259 -3600 # Node ID bae00174787c12edaa6d8ade38417f92a0ca03ee # Parent 932aca9a7c57140511065ecc9afcd561c8a5109c avoid GCC warnings * pt-funcall.cc (tree_funcall::dup): Delete unused parameter names. * ov-perm.cc (octave_perm_matrix::save_ascii, octave_perm_matrix::load_ascii): Delete unused typedef. * ov-base-diag.cc (octave_base_diag::do_index_op): Likewise. diff -r 932aca9a7c57 -r bae00174787c libinterp/octave-value/ov-base-diag.cc --- a/libinterp/octave-value/ov-base-diag.cc Sat Feb 22 19:56:17 2014 -0500 +++ b/libinterp/octave-value/ov-base-diag.cc Mon Feb 24 09:07:39 2014 +0100 @@ -100,7 +100,6 @@ bool resize_ok) { octave_value retval; - typedef typename DMT::element_type el_type; if (idx.length () == 2 && ! resize_ok) { diff -r 932aca9a7c57 -r bae00174787c libinterp/octave-value/ov-perm.cc --- a/libinterp/octave-value/ov-perm.cc Sat Feb 22 19:56:17 2014 -0500 +++ b/libinterp/octave-value/ov-perm.cc Mon Feb 24 09:07:39 2014 +0100 @@ -260,8 +260,6 @@ bool octave_perm_matrix::save_ascii (std::ostream& os) { - typedef octave_int idx_int_type; - os << "# size: " << matrix.rows () << "\n"; os << "# orient: " << (matrix.is_col_perm () ? 'c' : 'r') << '\n'; @@ -277,7 +275,6 @@ bool octave_perm_matrix::load_ascii (std::istream& is) { - typedef octave_int idx_int_type; octave_idx_type n; bool success = true; char orient; diff -r 932aca9a7c57 -r bae00174787c libinterp/parse-tree/pt-funcall.cc --- a/libinterp/parse-tree/pt-funcall.cc Sat Feb 22 19:56:17 2014 -0500 +++ b/libinterp/parse-tree/pt-funcall.cc Mon Feb 24 09:07:39 2014 +0100 @@ -66,8 +66,7 @@ } tree_funcall * -tree_funcall::dup (symbol_table::scope_id, - symbol_table::context_id context) const +tree_funcall::dup (symbol_table::scope_id, symbol_table::context_id) const { tree_funcall *new_fc = new tree_funcall (fcn, args, line (), column ());