Skip to content

Commit

Permalink
Merge bitcoin#30464: test, refactor: Fix MSVC warning C4101 "unrefere…
Browse files Browse the repository at this point in the history
…nced 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#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@44f0878)
  maflcko:
    ACK 44f0878
  theuni:
    trivial ACK 44f0878.

Tree-SHA512: 661d3b40ddb4f7915de7a65ccb27a24da88ae499ce03c036099007260b0597e83738f1a3a420985b51f798ee309ade32988c6d78f4ffed401099b175a0b2025b
  • Loading branch information
fanquake authored and PastaPastaPasta committed Sep 27, 2024
1 parent 02aee12 commit a204616
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/univalue/test/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
try { \
(stmt); \
assert(0 && "No exception caught"); \
} catch (excMatch & e) { \
} catch (...) { \
assert(0 && "Wrong exception caught"); \
} \
} catch (excMatch&) { \
} catch (...) { \
assert(0 && "Wrong exception caught"); \
} \
}
#define BOOST_CHECK_NO_THROW(stmt) { \
try { \
(stmt); \
} catch (...) { \
assert(0); \
} \
} catch (...) { \
assert(0); \
} \
}

BOOST_FIXTURE_TEST_SUITE(univalue_tests, BasicTestingSetup)
Expand Down

0 comments on commit a204616

Please sign in to comment.