[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compilation warnings in liboctave/CMatrix.cc
From: |
John W. Eaton |
Subject: |
compilation warnings in liboctave/CMatrix.cc |
Date: |
Thu, 13 Jan 2011 05:56:54 -0500 |
On 13-Jan-2011, CdeMills wrote:
| 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 ?
I'd be happy to see those warnings disappaear. Propose a patch...
jwe
Re: compilation warnings in liboctave/CMatrix.cc, Jordi GutiƩrrez Hermoso, 2011/01/13