Skip to content

Commit 9c8b36e

Browse files
committed
Merge bitcoin/bitcoin#30464: test, refactor: Fix MSVC warning C4101 "unreferenced local variable"
44f0878 test: Fix MSVC warning C4101 "unreferenced local variable" (Hennadii Stepanov) 5d25a82 univalue, refactor: Convert indentation tabs to spaces (Hennadii Stepanov) Pull request description: This PR is split from bitcoin/bitcoin#30454 and addresses MSVC warning [C4101](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4101) "unreferenced local variable". The current MSVC build system in the master branch skips building univalue tests, so it is not affected. No behaviour changes. ACKs for top commit: kevkevinpal: utACK [44f0878](bitcoin/bitcoin@44f0878) maflcko: ACK 44f0878 theuni: trivial ACK 44f0878. Tree-SHA512: 661d3b40ddb4f7915de7a65ccb27a24da88ae499ce03c036099007260b0597e83738f1a3a420985b51f798ee309ade32988c6d78f4ffed401099b175a0b2025b
2 parents efbf4e7 + 44f0878 commit 9c8b36e

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)