From 93e450f37c0db6892c2f006f077ed674cec052fb Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 30 Nov 2017 12:59:08 +0000 Subject: [PATCH] backends: Fix ClutterRect initialisations With Clang, these initialisations were warning about missing brackets. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=791022 --- src/backends/meta-cursor-renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c index 716378b89..27617ef92 100644 --- a/src/backends/meta-cursor-renderer.c +++ b/src/backends/meta-cursor-renderer.c @@ -70,7 +70,7 @@ queue_redraw (MetaCursorRenderer *renderer, MetaBackend *backend = meta_get_backend (); ClutterActor *stage = meta_backend_get_stage (backend); CoglTexture *texture; - ClutterRect rect = { 0 }; + ClutterRect rect = CLUTTER_RECT_INIT_ZERO; if (cursor_sprite) rect = meta_cursor_renderer_calculate_rect (renderer, cursor_sprite); @@ -173,7 +173,7 @@ meta_cursor_renderer_calculate_rect (MetaCursorRenderer *renderer, texture = meta_cursor_sprite_get_cogl_texture (cursor_sprite); if (!texture) - return (ClutterRect) { 0 }; + return (ClutterRect) CLUTTER_RECT_INIT_ZERO; meta_cursor_sprite_get_hotspot (cursor_sprite, &hot_x, &hot_y); texture_scale = meta_cursor_sprite_get_texture_scale (cursor_sprite);