From 8628b5fbea4363d280870fc74616f052f4eda156 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 8 Sep 2015 22:48:06 +0200 Subject: [PATCH] Removed unused exception variable name from throw assersions --- include/criterion/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/criterion/assert.h b/include/criterion/assert.h index 82216e8..97e5648 100644 --- a/include/criterion/assert.h +++ b/include/criterion/assert.h @@ -415,7 +415,7 @@ struct criterion_assert_args { # define cr_assert_throw_(Fail, Statement, Exception, ...) \ try { \ Statement; \ - } catch (Exception &ex) { \ + } catch (Exception const &) { \ } catch (...) { CR_EXPAND(cr_fail(Fail, CR_VA_TAIL(__VA_ARGS__))); } # define cr_assert_throw_va_(...) \ @@ -433,7 +433,7 @@ struct criterion_assert_args { # define cr_assert_no_throw_(Fail, Statement, Exception, ...) \ try { \ Statement; \ - } catch (Exception &ex) { CR_EXPAND(cr_fail(Fail, CR_VA_TAIL(__VA_ARGS__))); } + } catch (Exception const &) { CR_EXPAND(cr_fail(Fail, CR_VA_TAIL(__VA_ARGS__))); } # define cr_assert_no_throw_va_(...) \ CR_EXPAND(cr_assert_no_throw_( \