# HG changeset patch # User John W. Eaton # Date 1214395533 14400 # Node ID 322a066543aca13a888e872ce388c8a26c1e5d16 # Parent 92c26470fe56d7ec36f9ff041221ce07f51be9a4 avoid shadow warning diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-06-23 John W. Eaton + + * debug.cc (Fdbstack): Avoid shadowed variable warning. + 2008-06-23 Jaroslav Hajek * genprops.awk (emit_source): Avoid gensub for portability. diff --git a/src/debug.cc b/src/debug.cc --- a/src/debug.cc +++ b/src/debug.cc @@ -757,9 +757,9 @@ if (nargout == 0) { - octave_idx_type nframes = stk.numel (); + octave_idx_type nframes_to_display = stk.numel (); - if (nframes > 0) + if (nframes_to_display > 0) { octave_stdout << "Stopped in:\n\n"; @@ -767,7 +767,7 @@ Cell lines = stk.contents ("line"); Cell columns = stk.contents ("column"); - for (octave_idx_type i = 0; i < nframes; i++) + for (octave_idx_type i = 0; i < nframes_to_display; i++) { octave_value name = names(i); octave_value line = lines(i);