[vlc-commits] [Git][videolan/vlc][master] vout: silence unused warning

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Jan 6 08:57:15 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
a40cec8c by Romain Vimont at 2022-01-06T08:36:25+00:00
vout: silence unused warning

The vout parameter of vout_CloseWrapper() is only used on Windows,
causing a warning on other platforms:

    ../../src/video_output/vout_wrapper.c:131:39: warning: unused parameter ‘vout’ [-Wunused-parameter]
      131 | void vout_CloseWrapper(vout_thread_t *vout, vout_thread_private_t *sys, vout_display_t *vd)
          |                        ~~~~~~~~~~~~~~~^~~~

- - - - -


1 changed file:

- src/video_output/vout_wrapper.c


Changes:

=====================================
src/video_output/vout_wrapper.c
=====================================
@@ -137,6 +137,8 @@ void vout_CloseWrapper(vout_thread_t *vout, vout_thread_private_t *sys, vout_dis
 
 #ifdef _WIN32
     var_DelCallback(vout, "video-wallpaper", Forward, vd);
+#else
+    (void) vout;
 #endif
 
     vout_display_Delete(vd);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a40cec8c6c953facebeadebf8949e68a463c0527

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a40cec8c6c953facebeadebf8949e68a463c0527
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list