skypjack / uvw

Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!
MIT License
1.82k stars 207 forks source link

pipe: hide `uvw::pipe_handle::connect()` `-Wsign-conversion` warning #299

Closed aloisklink closed 12 months ago

aloisklink commented 1 year ago

Hide the following -Wsign-conversion warning in uvw::pipe_handle::connect() by explicitly passing an unsigned int.

/uvw/src/uvw/stream.h:56:48: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
   56 |         return this->leak_if(std::forward<F>(f)(raw(), std::forward<Args>(args)..., &connect_callback));