Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-05-08 12:33:57


Dear All,

I seem to remember someone posting a patch to work around new unused variable
warnings from GCC 4.0 in release build.

Oddly I can't find the posting any more and nothing appears in the archive.

>From recollection most of the warnings we created in cases were the expression
in BOOST_UBLAS_CHECK was not used. I think it may be better to work on the
warning more directly in the BOOST_UBLAS_CHECK macro.

I have committed the follow experimental definition in 'exception.hpp'

#define BOOST_UBLAS_CHECK(expression, e) \
    if (! (expression) );
#define BOOST_UBLAS_CHECK_EX(expression, file, line, e) \
    if (! (expression) );
#endif

Michael

-- 
___________________________________
Michael Stevens Systems Engineering
Navigation Systems, Estimation  and
                 Bayesian Filtering
    http://bayesclasses.sf.net
___________________________________