From 36b54dfbc7c3a5cd85e3f37576e91940158723e8 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 24 Nov 2014 18:50:10 +0200 Subject: libv4l2subdev: Fix missing initializer warning Set the whole v4l2_mbus_framefmt structure to 0 by initializing the first field only, achieving the same result while getting rid of the warning. Signed-off-by: Laurent Pinchart --- 3rdparty/media-ctl/libv4l2subdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/media-ctl/libv4l2subdev.c b/3rdparty/media-ctl/libv4l2subdev.c index 3dcf943..8ddc4df 100644 --- a/3rdparty/media-ctl/libv4l2subdev.c +++ b/3rdparty/media-ctl/libv4l2subdev.c @@ -648,7 +648,7 @@ static int set_frame_interval(struct media_entity *entity, static int v4l2_subdev_parse_setup_format(struct media_device *media, const char *p, char **endp) { - struct v4l2_mbus_framefmt format = { 0, 0, 0 }; + struct v4l2_mbus_framefmt format = { 0, }; struct media_pad *pad; struct v4l2_rect crop = { -1, -1, -1, -1 }; struct v4l2_rect compose = crop; -- cgit v1.2.3