diff options
author | fanquake <fanquake@gmail.com> | 2022-08-19 09:24:24 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-08-30 15:19:49 +0100 |
commit | 94f2235f858bc4fdaf0ab0882599f6a228401cf5 (patch) | |
tree | d360af12a956df3592e1962eef56fc5fbbbf8ea7 /doc/tor.md | |
parent | cfda740b332c77800f9bb2506d840dad3f4938c0 (diff) | |
download | bitcoin-94f2235f858bc4fdaf0ab0882599f6a228401cf5.tar.xz |
test: work around bugprone-use-after-move warnings in util tests
```bash
test/util_tests.cpp:2513:34: error: 't2' used after it was moved [bugprone-use-after-move,-warnings-as-errors]
BOOST_CHECK(v2[0].origin == &t2);
^
test/util_tests.cpp:2511:15: note: move occurred here
auto v2 = Vector(std::move(t2));
^
test/util_tests.cpp:2519:34: error: 't2' used after it was moved [bugprone-use-after-move,-warnings-as-errors]
BOOST_CHECK(v3[1].origin == &t2);
^
test/util_tests.cpp:2516:15: note: move occurred here
auto v3 = Vector(t1, std::move(t2));
^
test/util_tests.cpp:2527:34: error: 't3' used after it was moved [bugprone-use-after-move,-warnings-as-errors]
BOOST_CHECK(v4[2].origin == &t3);
^
test/util_tests.cpp:2523:15: note: move occurred here
auto v4 = Vector(std::move(v3[0]), v3[1], std::move(t3));
```
Diffstat (limited to 'doc/tor.md')
0 files changed, 0 insertions, 0 deletions