comparison liboctave/array/fMatrix.cc @ 16300:23c5f90f92cd

eliminate some variable might be clobbered by 'longjmp' or 'vfork' warnings * Matrix.cc (Matrix::rcond): Declare typ volatile. * CMatrix.cc (ComplexMatrix::rcond): Likewise. * fMatrix.cc (FloatMatrix::rcond): Likewise. * fCMatrix.cc (FloatComplexMatrix::rcond): Likewise.
author John W. Eaton <jwe@octave.org>
date Wed, 13 Mar 2013 15:45:05 -0400
parents 0a0912a9ab6e
children
comparison
equal deleted inserted replaced
16299:c40a8873c2e7 16300:23c5f90f92cd
1387 (*current_liboctave_error_handler) ("matrix must be square"); 1387 (*current_liboctave_error_handler) ("matrix must be square");
1388 else if (nr == 0 || nc == 0) 1388 else if (nr == 0 || nc == 0)
1389 rcon = octave_Inf; 1389 rcon = octave_Inf;
1390 else 1390 else
1391 { 1391 {
1392 int typ = mattype.type (); 1392 volatile int typ = mattype.type ();
1393 1393
1394 if (typ == MatrixType::Unknown) 1394 if (typ == MatrixType::Unknown)
1395 typ = mattype.type (*this); 1395 typ = mattype.type (*this);
1396 1396
1397 // Only calculate the condition number for LU/Cholesky 1397 // Only calculate the condition number for LU/Cholesky