octave-maintainers
[Top][All Lists]
Advanced

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

compilation warnings in liboctave/CMatrix.cc


From: CdeMills
Subject: compilation warnings in liboctave/CMatrix.cc
Date: Thu, 13 Jan 2011 02:40:30 -0800 (PST)

Hello,

There are a few warnings like 
../liboctave/CMatrix.cc:3732: warning: variable 'ctra' might be clobbered by 
'longjmp' or 'vfork'

the problem comes from function 
static const char *
get_blas_trans_arg (bool trans, bool conj)
{
  static char blas_notrans = 'N', blas_trans = 'T', blas_conj_trans = 'C';
  return trans ? (conj ? &blas_conj_trans : &blas_trans) : &blas_notrans;
}

Is it really worth a function ? Couldn't it be reduced to an inline func or
some #define ? 

Regards

Pascal

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


reply via email to

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