From a54102379599945435a1f6a69e6708594661ad8b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 6 Jun 2012 13:39:47 +0100 Subject: [PATCH] examples/layout: Initialize variables to avoid warnings --- examples/layout-manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/layout-manager.c b/examples/layout-manager.c index d43cb9b..2f3dec6 100644 --- a/examples/layout-manager.c +++ b/examples/layout-manager.c @@ -189,10 +189,10 @@ multi_layout_allocate (ClutterLayoutManager *manager, float x_offset, y_offset; ClutterActorIter iter; ClutterActor *child; - float item_x, item_y; - int n_items, n_items_per_row, item_index; - ClutterPoint center; - double radius, theta; + float item_x = 0.f, item_y = 0.f; + int n_items, n_items_per_row = 0, item_index; + ClutterPoint center = CLUTTER_POINT_INIT_ZERO; + double radius = 0, theta = 0; gboolean use_animations; ClutterAnimationMode easing_mode; guint easing_duration, easing_delay; -- 2.7.4