vlc | branch: master | Alexandre Janniaux <aja...@videolabs.io> | Wed Apr  8 
18:13:17 2020 +0200| [6f1183624fd76bc5c0246f8c0891c478e13676b2] | committer: 
Alexandre Janniaux

network: udp: fix unused function warning

The function is not used when compiling on darwin platform, as the
usages follow the same conditional check.

See 84dc949e138f6231ba0c58572b7949ca4e5724a8 for reference.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f1183624fd76bc5c0246f8c0891c478e13676b2
---

 src/network/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/udp.c b/src/network/udp.c
index d7c602a3b6..dbac266b66 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -291,7 +291,7 @@ static int net_SetMcastOut (vlc_object_t *p_this, int fd, 
int family,
 }
 
 
-#ifdef MCAST_JOIN_GROUP
+#if defined(MCAST_JOIN_GROUP) && !defined (__APPLE__)
 static unsigned var_GetIfIndex (vlc_object_t *obj)
 {
     char *ifname = var_InheritString (obj, "miface");

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to