diff options
| author | fanquake <[email protected]> | 2020-10-02 12:30:50 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-10-02 12:30:50 +0800 |
| commit | 82b70f15c72adc777bddc7ae7b1e359fb5daf1f1 (patch) | |
| tree | 9edbbe794dc8db4d86baaf37d3eed2844ab0a785 /src/script/script_error.cpp | |
| parent | Merge #20058: Update transifex slug for 0.21 (diff) | |
| download | discoin-82b70f15c72adc777bddc7ae7b1e359fb5daf1f1.tar.xz discoin-82b70f15c72adc777bddc7ae7b1e359fb5daf1f1.zip | |
refactor: fix -Wbraced-scalar-init warning in validation tests
Introduced in #20004 (fa29b5ae666bbb4c19188f0dcf8a1ba738aac624).
```bash
test/validation_tests.cpp:68:88: warning: braces around scalar initializer [-Wbraced-scalar-init]
BOOST_CHECK(signet_params->GetConsensus().signet_challenge == std::vector<uint8_t>{{OP_TRUE}});
^~~~~~~~~
/usr/local/include/boost/test/tools/old/interface.hpp:83:6: note: expanded from macro 'BOOST_CHECK'
(P), BOOST_TEST_STRINGIZE( P ), CHECK, CHECK_PRED, _ )
^
/usr/local/include/boost/test/tools/old/interface.hpp:68:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
BOOST_JOIN( BOOST_TEST_TOOL_PASS_PRED, frwd_type )( P, ARGS ), \
^
/usr/local/include/boost/test/tools/old/interface.hpp:51:47: note: expanded from macro 'BOOST_TEST_TOOL_PASS_PRED2'
^
1 warning generated.
```
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions