From c01ff9226047379125dd366f58e73b1363bfc0a1 Mon Sep 17 00:00:00 2001 From: Karol Majek Date: Tue, 4 Feb 2020 13:31:23 +0100 Subject: [PATCH] fix unused variable error in Release build --- sdk_core/src/base/io_loop.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk_core/src/base/io_loop.cpp b/sdk_core/src/base/io_loop.cpp index c22daf8..1770948 100644 --- a/sdk_core/src/base/io_loop.cpp +++ b/sdk_core/src/base/io_loop.cpp @@ -82,8 +82,7 @@ void IOLoop::RemoveDelegate(apr_socket_t *sock, IOLoopDelegate *) { } void IOLoop::RemoveDelegateSync(apr_socket_t *sock) { - apr_os_thread_t thread_id = apr_os_thread_current(); - assert(apr_os_thread_equal(this->thread_id_, thread_id)); + assert(apr_os_thread_equal(this->thread_id_, apr_os_thread_current())); RemoveDelegateAsync(sock); } -- 2.52.0