Skip to content

Commit

Permalink
Fix unused return value warning (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
twose authored Jun 12, 2020
1 parent abb5f83 commit ad81174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swoole_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3509,7 +3509,7 @@ static PHP_METHOD(swoole_server, taskwait)
//clear history task
while (swSocket_wait(task_notify_socket->fd, 0, SW_EVENT_READ) == SW_OK)
{
read(task_notify_socket->fd, &notify, sizeof(notify));
(void) read(task_notify_socket->fd, &notify, sizeof(notify));
}

sw_atomic_fetch_add(&serv->stats->tasking_num, 1);
Expand Down

0 comments on commit ad81174

Please sign in to comment.