loop: rename variable to fix -Wshadow warning

This commit is contained in:
Alois Klink 2023-08-23 13:23:49 +01:00
parent 36b586f7d3
commit ed04de80d8

View File

@ -278,9 +278,9 @@ public:
*/
template<typename Func>
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 *>(func);
auto &cb = *static_cast<Func *>(callback_func);
switch(utilities::guess_handle(handle_category{hndl->type})) {
case handle_type::ASYNC: