Skip to content
Snippets Groups Projects
Commit c86de009 authored by ahedberg's avatar ahedberg
Browse files

tell older compilers that not using fd is okay

parent d69dcd3f
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ int grpc_set_socket_ip_pktinfo_if_possible(int fd) { ...@@ -95,6 +95,7 @@ int grpc_set_socket_ip_pktinfo_if_possible(int fd) {
return 0 == setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, return 0 == setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip,
sizeof(get_local_ip)); sizeof(get_local_ip));
#else #else
(void)fd;
return 1; return 1;
#endif #endif
} }
...@@ -105,6 +106,7 @@ int grpc_set_socket_ipv6_recvpktinfo_if_possible(int fd) { ...@@ -105,6 +106,7 @@ int grpc_set_socket_ipv6_recvpktinfo_if_possible(int fd) {
return 0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, return 0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip,
sizeof(get_local_ip)); sizeof(get_local_ip));
#else #else
(void)fd;
return 1; return 1;
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment