mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02: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
Add a link
Reference in a new issue