mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
validation: use noexcept instead of deprecated throw()
```bash CXX libbitcoin_node_a-validation.o validation.cpp:5164:30: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-spec] const char* what() const throw() override ^~~~~~~ validation.cpp:5164:30: note: use 'noexcept' instead const char* what() const throw() override ^~~~~~~ noexcept ```
This commit is contained in:
parent
c123e1d215
commit
85e9e1f802
1 changed files with 1 additions and 1 deletions
|
@ -5161,7 +5161,7 @@ static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_load
|
|||
|
||||
struct StopHashingException : public std::exception
|
||||
{
|
||||
const char* what() const throw() override
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
return "ComputeUTXOStats interrupted.";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue