Mercurial > hg > octave-avbm
changeset 10552:394a83606f03
avoid deprecated function warnings from GCC
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Apr 2010 14:58:29 -0400 |
parents | fb14397f73cb |
children | f88e3d5d88e2 |
files | src/ChangeLog src/DLD-FUNCTIONS/gcd.cc src/oct-obj.cc src/ov-str-mat.cc |
diffstat | 4 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +2010-04-23 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/gcd.cc (Fgcd): Use two-argument dim_vector constructor. + + * ov-str-mat.cc (octave_char_matrix_str::do_index_op_internal): + Explicitly create idx_vec with column orientation. + + * oct-obj.cc (octave_value_list::octave_value_list): + Explicitly resize data to be row vector. + 2010-04-23 Rik <octave@nomad.inbox5.com> * DLD-FUNCTIONS/regexp.cc.: eliminate compile warning
--- a/src/DLD-FUNCTIONS/gcd.cc +++ b/src/DLD-FUNCTIONS/gcd.cc @@ -108,7 +108,7 @@ bool all_args_scalar = true; bool any_single = false; - dim_vector dv(1); + dim_vector dv (1, 1); for (int i = 0; i < nargin; i++) {