[vlc-devel] [PATCH 2/3] posix: silence a unused variable warning

Zhao Zhili quinkblack at foxmail.com
Fri May 18 08:00:53 CEST 2018


---
 src/posix/plugin.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/posix/plugin.c b/src/posix/plugin.c
index 65db4ee..f2a259e 100644
--- a/src/posix/plugin.c
+++ b/src/posix/plugin.c
@@ -45,8 +45,10 @@ void *vlc_dlopen(const char *path, bool lazy)
     const int flags = lazy ? RTLD_LAZY : RTLD_NOW;
 #elif defined (DL_LAZY)
     const int flags = DL_LAZY;
+    VLC_UNUSED(lazy);
 #else
     const int flags = 0;
+    VLC_UNUSED(lazy);
 #endif
     return dlopen (path, flags);
 }
-- 
2.9.5



More information about the vlc-devel mailing list