octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation warnings in liboctave/CMatrix.cc


From: CdeMills
Subject: Re: compilation warnings in liboctave/CMatrix.cc
Date: Thu, 13 Jan 2011 07:16:06 -0800 (PST)


John W. Eaton wrote:
> 
> On 13-Jan-2011, CdeMills wrote:
> 
> I'd be happy to see those warnings disappaear.  Propose a patch...
> 
> 

Another group of problems.
../../liboctave/CmplxLU.cc: In constructor 'ComplexLU::ComplexLU(const
ComplexMa
trix&)':
../../liboctave/CmplxLU.cc:72: warning: variable 'mn' might be clobbered by
'lon
gjmp' or 'vfork'
../../liboctave/CmplxLU.cc: In constructor 'ComplexLU::ComplexLU(const
ComplexMa
trix&)':
../../liboctave/CmplxLU.cc:72: warning: variable 'mn' might be clobbered by
'lon
gjmp' or 'vfork'

Origin:
  octave_idx_type a_nr = a.rows ();
  octave_idx_type a_nc = a.cols ();
  octave_idx_type mn = (a_nr < a_nc ? a_nr : a_nc);

To make this message disappear, one option is to declare mn volatile, but
then there is a big penalty at the loop at the end of the constructor. Any
idea why this message is produced ?

Regards

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/compilation-warnings-in-liboctave-CMatrix-cc-tp3215607p3216006.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]