From 7a25dc10364cbe5ecd86ebd7841412eb4afb75a3 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); }