0
0
Fork 0
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:
fanquake 2023-07-17 14:44:46 +01:00
parent c123e1d215
commit 85e9e1f802
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -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.";
}