diff options
author | ahedberg <ahedberg@google.com> | 2016-03-28 17:27:14 -0400 |
---|---|---|
committer | ahedberg <ahedberg@google.com> | 2016-03-28 17:27:14 -0400 |
commit | c86de00900f905bfde77184281f02cd190f1aa1a (patch) | |
tree | 60429286dc0293afb9f9ef634d8116e2d75f5b9d /src | |
parent | d69dcd3f7c76d91607ef4bdcab30a7b67fcdb610 (diff) |
tell older compilers that not using fd is okay
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/socket_utils_common_posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/socket_utils_common_posix.c b/src/core/iomgr/socket_utils_common_posix.c index 9259d800a6..a30374eb50 100644 --- a/src/core/iomgr/socket_utils_common_posix.c +++ b/src/core/iomgr/socket_utils_common_posix.c @@ -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, sizeof(get_local_ip)); #else + (void)fd; return 1; #endif } @@ -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, sizeof(get_local_ip)); #else + (void)fd; return 1; #endif } |