8000 Eliminating 'unused exception variable' warnings. · unittest-cpp/unittest-cpp@89ff259 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89ff259

Browse files
ohz10pjohnmeyer
authored andcommitted
Eliminating 'unused exception variable' warnings.
1 parent a9161c1 commit 89ff259

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

UnitTest++/CheckMacros.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
if (!UnitTest::Check(value)) \
4242
UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), #value); \
4343
}) \
44-
UT_CATCH (UnitTest::AssertException, e, \
44+
UT_CATCH (UnitTest::AssertException, , \
4545
{ \
4646
UT_THROW(); \
4747
}) \
@@ -65,7 +65,7 @@
6565
({ \
6666
UnitTest::CheckEqual(*UnitTest::CurrentTest::Results(), expected, actual, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \
6767
}) \
68-
UT_CATCH (UnitTest::AssertException, e, \
68+
UT_CATCH (UnitTest::AssertException, , \
6969
{ \
7070
UT_THROW(); \
7171
}) \
@@ -89,7 +89,7 @@
8989
({ \
9090
UnitTest::CheckClose(*UnitTest::CurrentTest::Results(), expected, actual, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \
9191
}) \
92-
UT_CATCH (UnitTest::AssertException, e, \
92+
UT_CATCH (UnitTest::AssertException, , \
9393
{ \
9494
UT_THROW(); \
9595
}) \
@@ -113,7 +113,7 @@
113113
({ \
114114
UnitTest::CheckArrayEqual(*UnitTest::CurrentTest::Results(), expected, actual, count, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \
115115
}) \
116-
UT_CATCH (UnitTest::AssertException, e, \
116+
UT_CATCH (UnitTest::AssertException, , \
117117
{ \
118118
UT_THROW(); \
119119
}) \
@@ -137,7 +137,7 @@
137137
({ \
138138
UnitTest::CheckArrayClose(*UnitTest::CurrentTest::Results(), expected, actual, count, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \
139139
}) \
140-
UT_CATCH (UnitTest::AssertException, e, \
140+
UT_CATCH (UnitTest::AssertException, , \
141141
{ \
142142
UT_THROW(); \
143143
}) \
@@ -161,7 +161,7 @@
161161
({ \
162162
UnitTest::CheckArray2DClose(*UnitTest::CurrentTest::Results(), expected, actual, rows, columns, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \
163163
}) \
164-
UT_CATCH (UnitTest::AssertException, e, \
164+
UT_CATCH (UnitTest::AssertException, , \
165165
{ \
166166
UT_THROW(); \
167167
}) \

0 commit comments

Comments
 (0)
0