mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-06 15:41:36 +01:00
BUILD: poll: remove unused hap_fd_isset() which causes a warning with clang
Clang reports that this function is not used : src/ev_poll.c:34:28: warning: unused function 'hap_fd_isset' [-Wunused-function] static inline unsigned int hap_fd_isset(int fd, unsigned int *evts) It's been true since the rework of the pollers in 1.5 and it's unlikely we'll ever need it anymore, so better remove it now to provide clean builds. This fix can be backported to 1.6 and 1.5 now.
This commit is contained in:
parent
e1cc4b5231
commit
091e86e1ee
@ -31,11 +31,6 @@ static unsigned int *fd_evts[2];
|
||||
static struct pollfd *poll_events = NULL;
|
||||
|
||||
|
||||
static inline unsigned int hap_fd_isset(int fd, unsigned int *evts)
|
||||
{
|
||||
return evts[fd / (8*sizeof(*evts))] & (1U << (fd & (8*sizeof(*evts) - 1)));
|
||||
}
|
||||
|
||||
static inline void hap_fd_set(int fd, unsigned int *evts)
|
||||
{
|
||||
evts[fd / (8*sizeof(*evts))] |= 1U << (fd & (8*sizeof(*evts) - 1));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user