[vlc-commits] wayland: shm: remove superfluous callback

Alexandre Janniaux git at videolan.org
Tue Sep 15 13:08:10 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Sep 15 10:12:13 2020 +0200| [88bafc4117ed5a317ff1f1409f4f1b5cf4895ac2] | committer: Alexandre Janniaux

wayland: shm: remove superfluous callback

Fix the following warning:

../../modules/video_output/wayland/shm.c:266:60: warning: excess elements in struct initializer
  266 |     Close, Prepare, Display, Control, ResetPictures, NULL, NULL,
      |                                                            ^~~~
../../modules/video_output/wayland/shm.c:266:60: note: (near initialization for 'ops')

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

 modules/video_output/wayland/shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/wayland/shm.c b/modules/video_output/wayland/shm.c
index a336658d8d..4480fa6d3a 100644
--- a/modules/video_output/wayland/shm.c
+++ b/modules/video_output/wayland/shm.c
@@ -263,7 +263,7 @@ static void Close(vout_display_t *vd)
 }
 
 static const struct vlc_display_operations ops = {
-    Close, Prepare, Display, Control, ResetPictures, NULL, NULL,
+    Close, Prepare, Display, Control, ResetPictures, NULL,
 };
 
 static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,



More information about the vlc-commits mailing list