Skip to content

Commit

Permalink
Fix warning about unused variable if FD_CLOEXEC is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Nov 24, 2015
1 parent 22b5942 commit 73fc19b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/mysql/psi/mysql_socket.h
Expand Up @@ -1013,7 +1013,9 @@ inline_mysql_socket_accept
#endif
MYSQL_SOCKET socket_listen, struct sockaddr *addr, socklen_t *addr_len)
{
#ifdef FD_CLOEXEC
int flags;
#endif

MYSQL_SOCKET socket_accept= MYSQL_INVALID_SOCKET;
socklen_t addr_length= (addr_len != NULL) ? *addr_len : 0;
Expand Down

0 comments on commit 73fc19b

Please sign in to comment.