From 0d728071e3287a71ce7928640e63c19f4d0ab00f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 22 Mar 2025 17:17:15 +0530 Subject: Build fixes + formatting --- src/AsyncEventLoop.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/AsyncEventLoop.cpp') diff --git a/src/AsyncEventLoop.cpp b/src/AsyncEventLoop.cpp index 360a45e..31be89c 100644 --- a/src/AsyncEventLoop.cpp +++ b/src/AsyncEventLoop.cpp @@ -1,7 +1,9 @@ #include #include #include +#include #include +#include #include #include "AsyncEventLoop.hpp" @@ -63,7 +65,7 @@ AsyncEventLoop::~AsyncEventLoop() { uv_stop(loop); // Close all handles - AsyncEventLoop::closeHandle((uv_handle_t *)&asyncHandle); + AsyncEventLoop::closeHandle(reinterpret_cast(&asyncHandle)); uv_walk(loop, AsyncEventLoop::closeHandle, nullptr); while (uv_run(loop, UV_RUN_ONCE) != 0) ; @@ -87,7 +89,7 @@ void AsyncEventLoop::asyncHandleCallback(uv_async_t *handle) { runtime->processTasks(); } -void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *arg) { +void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *) { if (!uv_is_closing(handle)) { uv_close(handle, [](uv_handle_t *h) { h->data = nullptr; }); } -- cgit v1.3.1