All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] lib/igt_fb: Fix -Werror=missing-braces compilation on clang.
@ 2018-11-19 11:05 Maarten Lankhorst
  2018-11-19 11:05 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_render_tiled_blits: Make sure igt_buf is initially zero'd Maarten Lankhorst
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Maarten Lankhorst @ 2018-11-19 11:05 UTC (permalink / raw)
  To: igt-dev

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>
---
 lib/igt_fb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 01efd269714b..2462d6ba6fab 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;
 
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-19 16:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-19 11:05 [igt-dev] [PATCH i-g-t 1/2] lib/igt_fb: Fix -Werror=missing-braces compilation on clang Maarten Lankhorst
2018-11-19 11:05 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_render_tiled_blits: Make sure igt_buf is initially zero'd Maarten Lankhorst
2018-11-19 12:05   ` Chris Wilson
2018-11-19 12:08     ` Chris Wilson
2018-11-19 13:41       ` Maarten Lankhorst
2018-11-19 13:30 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib/igt_fb: Fix -Werror=missing-braces compilation on clang Patchwork
2018-11-19 16:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.