From 819cc11a1ceecf66175f4841cb5ebc43e592ef56 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Sun, 8 May 2005 17:34:54 +0000 Subject: [PATCH] Fixed unused variable warning in BOOST_UBLAS_CHECK release build [SVN r28742] --- include/boost/numeric/ublas/exception.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/boost/numeric/ublas/exception.hpp b/include/boost/numeric/ublas/exception.hpp index 223b4f60..843abcff 100644 --- a/include/boost/numeric/ublas/exception.hpp +++ b/include/boost/numeric/ublas/exception.hpp @@ -254,12 +254,10 @@ namespace boost { namespace numeric { namespace ublas { // template // BOOST_UBLAS_INLINE // void check_ex (bool expression, const char *file, int line, const E &e) {} -#define BOOST_UBLAS_CHECK(expression, e) - { (expession); - } -#define BOOST_UBLAS_CHECK_EX(expression, file, line, e) - { (expession); - } +#define BOOST_UBLAS_CHECK(expression, e) \ + if (! (expression) ); +#define BOOST_UBLAS_CHECK_EX(expression, file, line, e) \ + if (! (expression) ); #endif