aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_bitcoin_main.cpp')
-rw-r--r--src/test/test_bitcoin_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_bitcoin_main.cpp b/src/test/test_bitcoin_main.cpp
index 34beef5539..b556c953b9 100644
--- a/src/test/test_bitcoin_main.cpp
+++ b/src/test/test_bitcoin_main.cpp
@@ -10,14 +10,14 @@
std::unique_ptr<CConnman> g_connman;
-void Shutdown(void* parg)
+[[noreturn]] void Shutdown(void* parg)
{
- exit(EXIT_SUCCESS);
+ std::exit(EXIT_SUCCESS);
}
-void StartShutdown()
+[[noreturn]] void StartShutdown()
{
- exit(EXIT_SUCCESS);
+ std::exit(EXIT_SUCCESS);
}
bool ShutdownRequested()