From ed04de80d876711c8cdb6a313767cf71bb8ec2f7 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Wed, 23 Aug 2023 13:23:49 +0100 Subject: [PATCH] loop: rename variable to fix `-Wshadow` warning --- src/uvw/loop.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uvw/loop.h b/src/uvw/loop.h index 67a0f9cd..f7d9e7cf 100644 --- a/src/uvw/loop.h +++ b/src/uvw/loop.h @@ -278,9 +278,9 @@ public: */ template void walk(Func callback) { - auto func = [](uv_handle_t *hndl, void *func) { + auto func = [](uv_handle_t *hndl, void *callback_func) { if(hndl->data) { - auto &cb = *static_cast(func); + auto &cb = *static_cast(callback_func); switch(utilities::guess_handle(handle_category{hndl->type})) { case handle_type::ASYNC: