Skip to content

Commit a87c2f3

Browse files
authored
Fix compilation warning
1 parent 5405676 commit a87c2f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/php_network.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@ PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
214214
static inline bool _php_check_fd_setsize(php_socket_t *max_fd, int setsize)
215215
{
216216
#ifdef PHP_WIN32
217+
(void)(max_fd); // Unused
217218
if (setsize + 1 >= FD_SETSIZE) {
218219
_php_emit_fd_setsize_warning(setsize);
219220
return false;
220221
}
221222
#else
223+
(void)(setsize); // Unused
222224
if (*max_fd >= FD_SETSIZE) {
223225
_php_emit_fd_setsize_warning(*max_fd);
224226
*max_fd = FD_SETSIZE - 1;

0 commit comments

Comments
 (0)