From 49d8731c1c6534cfe44b202fd3108c2ceb2998ec Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 21 Mar 2020 13:49:41 +0300 Subject: [PATCH] Thread.h: fix warning --- Utilities/Thread.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Utilities/Thread.h b/Utilities/Thread.h index 6df879e756..7e87c42126 100644 --- a/Utilities/Thread.h +++ b/Utilities/Thread.h @@ -280,12 +280,10 @@ class named_thread final : public Context, result_storage_t, thread_bas { auto tls_error_cb = []() { - const auto _this = thread_ctrl::get_current(); - if constexpr (!result::empty) { // Construct using default constructor in the case of failure - new (static_cast(static_cast(_this))->get()) typename result::type(); + new (static_cast(static_cast(thread_ctrl::get_current()))->get()) typename result::type(); } };