From e6a374efb17d3d5028255e14b6b7e1da73e378c8 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 path=/trunk/boost/boost/numeric/ublas/; revision=28742 --- 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