mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge bitcoin/bitcoin#30464: test, refactor: Fix MSVC warning C4101 "unreferenced local variable"
44f08786f435ed4284d39dc604c2a5fcbde9e602 test: Fix MSVC warning C4101 "unreferenced local variable" (Hennadii Stepanov)
5d25a82b9a5e54f74cc066599541bc1d3da70988 univalue, refactor: Convert indentation tabs to spaces (Hennadii Stepanov)
Pull request description:
This PR is split from https://github.com/bitcoin/bitcoin/pull/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](44f08786f4
)
maflcko:
ACK 44f08786f435ed4284d39dc604c2a5fcbde9e602
theuni:
trivial ACK 44f08786f435ed4284d39dc604c2a5fcbde9e602.
Tree-SHA512: 661d3b40ddb4f7915de7a65ccb27a24da88ae499ce03c036099007260b0597e83738f1a3a420985b51f798ee309ade32988c6d78f4ffed401099b175a0b2025b
This commit is contained in:
parent
02aee122de
commit
a204616446
@ -20,17 +20,17 @@
|
|||||||
try { \
|
try { \
|
||||||
(stmt); \
|
(stmt); \
|
||||||
assert(0 && "No exception caught"); \
|
assert(0 && "No exception caught"); \
|
||||||
} catch (excMatch & e) { \
|
} catch (excMatch&) { \
|
||||||
} catch (...) { \
|
} catch (...) { \
|
||||||
assert(0 && "Wrong exception caught"); \
|
assert(0 && "Wrong exception caught"); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#define BOOST_CHECK_NO_THROW(stmt) { \
|
#define BOOST_CHECK_NO_THROW(stmt) { \
|
||||||
try { \
|
try { \
|
||||||
(stmt); \
|
(stmt); \
|
||||||
} catch (...) { \
|
} catch (...) { \
|
||||||
assert(0); \
|
assert(0); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FIXTURE_TEST_SUITE(univalue_tests, BasicTestingSetup)
|
BOOST_FIXTURE_TEST_SUITE(univalue_tests, BasicTestingSetup)
|
||||||
|
Loading…
Reference in New Issue
Block a user