loop: rename variable to fix -Wshadow warning (#297)

This commit is contained in:
Alois Klink 2023-08-25 16:42:01 +01:00 committed by GitHub
parent 36b586f7d3
commit 9c88a9b352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: