diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-11-19 11:59:55 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-11-19 14:39:15 +0100 |
commit | 8b35410771c7bcb75c3702673a81a282447ff810 (patch) | |
tree | ad38ba9bb0e36859a082f36830b1f4b3d8955adf /lib/igt_fb.c | |
parent | 38b0749a09755cf94a3d9281ad163e21f37d1e47 (diff) |
lib/igt_fb: Fix -Werror=missing-braces compilation on clang.
Clang fails to compile with:
error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
Make the initializer empty to fix this issue.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com> #irc
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r-- | lib/igt_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 01efd269..2462d6ba 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1995,7 +1995,7 @@ static void destroy_cairo_surface__convert(void *arg) static void create_cairo_surface__convert(int fd, struct igt_fb *fb) { struct fb_convert_blit_upload *blit = malloc(sizeof(*blit)); - struct fb_convert cvt = { 0 }; + struct fb_convert cvt = { }; igt_assert(blit); @@ -2188,7 +2188,7 @@ void igt_remove_fb(int fd, struct igt_fb *fb) unsigned int igt_fb_convert(struct igt_fb *dst, struct igt_fb *src, uint32_t dst_fourcc) { - struct fb_convert cvt = { 0 }; + struct fb_convert cvt = { }; void *dst_ptr, *src_ptr; int fb_id; |