mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:13:32 +03:00
build: globally suppress DJGPP warnings in FD_SET()
Replacing the many local `#pragma` used before this patch, reducing the number of `__DJGPP__` guards from 58 to 13. Closes #20299
This commit is contained in:
parent
ad8374aedc
commit
0431cbe71a
13 changed files with 13 additions and 157 deletions
|
|
@ -65,14 +65,7 @@ static bool waitfd(int waitms, int fd)
|
|||
timeout.tv_usec = (int)((waitms % 1000) * 1000);
|
||||
|
||||
FD_ZERO(&bits);
|
||||
#ifdef __DJGPP__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warith-conversion"
|
||||
#endif
|
||||
FD_SET(fd, &bits);
|
||||
#ifdef __DJGPP__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
if(!select(fd + 1, &bits, NULL, NULL, &timeout))
|
||||
return TRUE; /* timeout */
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue