Skip to content

Commit 05e2091

Browse files
committed
merge bitcoin#30464: Fix MSVC warning C4101 "unreferenced local variable"
1 parent f00dc78 commit 05e2091

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/univalue/test/object.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
try { \
2121
(stmt); \
2222
assert(0 && "No exception caught"); \
23-
} catch (excMatch & e) { \
24-
} catch (...) { \
25-
assert(0 && "Wrong exception caught"); \
26-
} \
23+
} catch (excMatch&) { \
24+
} catch (...) { \
25+
assert(0 && "Wrong exception caught"); \
26+
} \
2727
}
2828
#define BOOST_CHECK_NO_THROW(stmt) { \
2929
try { \
3030
(stmt); \
31-
} catch (...) { \
32-
assert(0); \
33-
} \
31+
} catch (...) { \
32+
assert(0); \
33+
} \
3434
}
3535

3636
void univalue_constructor()

0 commit comments

Comments
 (0)