Skip to content

Commit e2f6866

Browse files
committed
Merge #18975: test: Remove const to work around compiler error on xenial
050e2ee test: Remove const to work around compiler error on xenial (Wladimir J. van der Laan) Pull request description: Fix the following error in travis: test/validationinterface_tests.cpp:26:36: error: default initialization of an object of const type 'const BlockValidationState' without a user-provided default constructor const BlockValidationState state_dummy; ACKs for top commit: MarcoFalke: Tested ACK 050e2ee on xenial with clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final) fanquake: ACK 050e2ee - I see why we didn't hit this on master. We are installing the `clang-8` packages for the tsan job. However on the 0.20 branch we are still just installing `clang`, which is 3.8. Tree-SHA512: 8a1d57289dbe9895ab79f81ca87b4fd723426b8d72f3a34bec9553226fba69f6dc19551c1f1d52db6c4b2652164a02ddc60f3187c3e2ad7bcacb0aaca7fa690a
2 parents 553bb3f + 050e2ee commit e2f6866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/validationinterface_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ BOOST_AUTO_TEST_CASE(unregister_validation_interface_race)
2323
// Start thread to generate notifications
2424
std::thread gen{[&] {
2525
const CBlock block_dummy;
26-
const BlockValidationState state_dummy;
26+
BlockValidationState state_dummy;
2727
while (generate) {
2828
GetMainSignals().BlockChecked(block_dummy, state_dummy);
2929
}

0 commit comments

Comments
 (0)