Skip to content

Commit 85e9e1f

Browse files
committed
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 ```
1 parent c123e1d commit 85e9e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5161,7 +5161,7 @@ static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_load
51615161

51625162
struct StopHashingException : public std::exception
51635163
{
5164-
const char* what() const throw() override
5164+
const char* what() const noexcept override
51655165
{
51665166
return "ComputeUTXOStats interrupted.";
51675167
}

0 commit comments

Comments
 (0)