Commit da15cf44 authored by Youness Alaoui's avatar Youness Alaoui

avoid warning by using fd argument when MSG_ERRQUEUE is undefined

parent 27128730
...@@ -164,6 +164,7 @@ static int recv_err (int fd) ...@@ -164,6 +164,7 @@ static int recv_err (int fd)
memset (&hdr, 0, sizeof (hdr)); memset (&hdr, 0, sizeof (hdr));
return recvmsg (fd, &hdr, MSG_ERRQUEUE) >= 0; return recvmsg (fd, &hdr, MSG_ERRQUEUE) >= 0;
#else #else
(void) fd;
return 0; return 0;
#endif #endif
} }
......
...@@ -324,6 +324,7 @@ static int stun_err_dequeue (int fd) ...@@ -324,6 +324,7 @@ static int stun_err_dequeue (int fd)
errno = saved_errno; errno = saved_errno;
return ret; return ret;
#else #else
(void) fd;
return 0; return 0;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment