Removed unused exception variable name from throw assersions
This commit is contained in:
parent
3ba88bb314
commit
8628b5fbea
1 changed files with 2 additions and 2 deletions
|
@ -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_( \
|
||||
|
|
Loading…
Add table
Reference in a new issue