Mercurial > hg > octave-lyh
diff liboctave/CMatrix.cc @ 8806:c7864bb74914
avoid some GCC warnings
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 18 Feb 2009 13:45:20 -0500 |
parents | f3ff420fccf7 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -1553,7 +1553,8 @@ ComplexDET ComplexMatrix::determinant (MatrixType& mattype, - octave_idx_type& info, double& rcon, int calc_cond) const + octave_idx_type& info, double& rcon, + int calc_cond) const { ComplexDET retval (1.0); @@ -1564,7 +1565,7 @@ (*current_liboctave_error_handler) ("matrix must be square"); else { - int typ = mattype.type (); + volatile int typ = mattype.type (); if (typ == MatrixType::Unknown) typ = mattype.type (*this);