diff --git a/src/core/thread.d b/src/core/thread.d index 1dc9d2d6d38..60276d6baa2 100644 --- a/src/core/thread.d +++ b/src/core/thread.d @@ -2108,7 +2108,7 @@ version( Windows ) * * $(D extern(C) void rt_moduleTlsCtor();) */ -extern (C) void thread_detachThis() +extern (C) void thread_detachThis() nothrow { if (auto t = Thread.getThis()) Thread.remove(t);