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:
1 file changed
+1
-1
+1
-1
@@ -5161,7 +5161,7 @@ static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_load
|
|||||||
|
|
||||||
struct StopHashingException : public std::exception
|
struct StopHashingException : public std::exception
|
||||||
{
|
{
|
||||||
const char* what() const throw() override
|
const char* what() const noexcept override
|
||||||
{
|
{
|
||||||
return "ComputeUTXOStats interrupted.";
|
return "ComputeUTXOStats interrupted.";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user