Mercurial > hg > octave-lyh
diff liboctave/CmplxQR.cc @ 8806:c7864bb74914
avoid some GCC warnings
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 18 Feb 2009 13:45:20 -0500 |
parents | e9cb742df9eb |
children | 20dfb885f877 |
line wrap: on
line diff
--- a/liboctave/CmplxQR.cc +++ b/liboctave/CmplxQR.cc @@ -243,7 +243,7 @@ { OCTAVE_LOCAL_BUFFER (Complex, w, k); OCTAVE_LOCAL_BUFFER (double, rw, k); - for (octave_idx_type i = 0; i < u.cols (); i++) + for (volatile octave_idx_type i = 0; i < u.cols (); i++) { ComplexColumnVector utmp = u.column (i), vtmp = v.column (i); F77_XFCN (zqr1up, ZQR1UP, (m, n, k, q.fortran_vec (), m, r.fortran_vec (), k, @@ -319,7 +319,7 @@ } OCTAVE_LOCAL_BUFFER (double, rw, kmax); - for (octave_idx_type i = 0; i < js.length (); i++) + for (volatile octave_idx_type i = 0; i < js.length (); i++) { ComplexColumnVector utmp = u.column (jsi(i)); F77_XFCN (zqrinc, ZQRINC, (m, n + i, std::min (kmax, k + i), @@ -378,7 +378,7 @@ else if (nj > 0) { OCTAVE_LOCAL_BUFFER (double, rw, k); - for (octave_idx_type i = 0; i < js.length (); i++) + for (volatile octave_idx_type i = 0; i < js.length (); i++) { F77_XFCN (zqrdec, ZQRDEC, (m, n - i, k == m ? k : k - i, q.fortran_vec (), q.rows (),