[vlc-devel] [PATCH] network: udp: fix unused function warning

Alexandre Janniaux ajanni at videolabs.io
Wed Apr 8 18:13:17 CEST 2020


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

See 84dc949e138f6231ba0c58572b7949ca4e5724a8 for reference.
---
 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");
-- 
2.26.0



More information about the vlc-devel mailing list