[mutter] cursor-renderer/native: Fix compilation warning
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cursor-renderer/native: Fix compilation warning
- Date: Fri, 16 Aug 2019 13:11:19 +0000 (UTC)
commit 4d8190972d788e38617add2c6399a8849037b958
Author: Albert Vaca Cintora <albertvaka gmail com>
Date: Fri Aug 16 09:34:12 2019 +0000
cursor-renderer/native: Fix compilation warning
Previous initialization triggered Wmissing-braces in Clang.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/731
src/backends/native/meta-cursor-renderer-native.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-cursor-renderer-native.c
b/src/backends/native/meta-cursor-renderer-native.c
index 2cac69b8f..34e6f09c9 100644
--- a/src/backends/native/meta-cursor-renderer-native.c
+++ b/src/backends/native/meta-cursor-renderer-native.c
@@ -398,7 +398,7 @@ update_hw_cursor (MetaCursorRendererNative *native,
if (cursor_sprite)
rect = meta_cursor_renderer_calculate_rect (renderer, cursor_sprite);
else
- rect = (ClutterRect) { 0 };
+ rect = (ClutterRect) CLUTTER_RECT_INIT_ZERO;
logical_monitors =
meta_monitor_manager_get_logical_monitors (monitor_manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]