changeset 18522:bae00174787c

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<DMT, MT>::do_index_op): Likewise.
author Lasse Schuirmann <lasse@schuirmann.net> and Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 24 Feb 2014 09:07:39 +0100
parents 932aca9a7c57
children c936beeda029
files libinterp/octave-value/ov-base-diag.cc libinterp/octave-value/ov-perm.cc libinterp/parse-tree/pt-funcall.cc
diffstat 3 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {
--- 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<octave_idx_type> 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<octave_idx_type> idx_int_type;
   octave_idx_type n;
   bool success = true;
   char orient;
--- 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 ());