# HG changeset patch # User John W. Eaton # Date 1214395533 14400 # Node ID 322a066543aca13a888e872ce388c8a26c1e5d16 # Parent 92c26470fe56d7ec36f9ff041221ce07f51be9a4 avoid shadow warning diff -r 92c26470fe56 -r 322a066543ac src/ChangeLog --- a/src/ChangeLog Wed Jun 25 12:46:32 2008 +0200 +++ b/src/ChangeLog Wed Jun 25 08:05:33 2008 -0400 @@ -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 -r 92c26470fe56 -r 322a066543ac src/debug.cc --- a/src/debug.cc Wed Jun 25 12:46:32 2008 +0200 +++ b/src/debug.cc Wed Jun 25 08:05:33 2008 -0400 @@ -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);