changeset 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 c40a8873c2e7
children d39342a19fb8
files liboctave/array/CMatrix.cc liboctave/array/dMatrix.cc liboctave/array/fCMatrix.cc liboctave/array/fMatrix.cc
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/array/CMatrix.cc	Wed Mar 13 15:40:03 2013 -0400
+++ b/liboctave/array/CMatrix.cc	Wed Mar 13 15:45:05 2013 -0400
@@ -1721,7 +1721,7 @@
     rcon = octave_Inf;
   else
     {
-      int typ = mattype.type ();
+      volatile int typ = mattype.type ();
 
       if (typ == MatrixType::Unknown)
         typ = mattype.type (*this);
--- a/liboctave/array/dMatrix.cc	Wed Mar 13 15:40:03 2013 -0400
+++ b/liboctave/array/dMatrix.cc	Wed Mar 13 15:45:05 2013 -0400
@@ -1389,7 +1389,7 @@
     rcon = octave_Inf;
   else
     {
-      int typ = mattype.type ();
+      volatile int typ = mattype.type ();
 
       if (typ == MatrixType::Unknown)
         typ = mattype.type (*this);
--- a/liboctave/array/fCMatrix.cc	Wed Mar 13 15:40:03 2013 -0400
+++ b/liboctave/array/fCMatrix.cc	Wed Mar 13 15:45:05 2013 -0400
@@ -1717,7 +1717,7 @@
     rcon = octave_Inf;
   else
     {
-      int typ = mattype.type ();
+      volatile int typ = mattype.type ();
 
       if (typ == MatrixType::Unknown)
         typ = mattype.type (*this);
--- a/liboctave/array/fMatrix.cc	Wed Mar 13 15:40:03 2013 -0400
+++ b/liboctave/array/fMatrix.cc	Wed Mar 13 15:45:05 2013 -0400
@@ -1389,7 +1389,7 @@
     rcon = octave_Inf;
   else
     {
-      int typ = mattype.type ();
+      volatile int typ = mattype.type ();
 
       if (typ == MatrixType::Unknown)
         typ = mattype.type (*this);