[clutter] examples/layout: Initialize variables to avoid warnings



commit a54102379599945435a1f6a69e6708594661ad8b
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Jun 6 13:39:47 2012 +0100

    examples/layout: Initialize variables to avoid warnings

 examples/layout-manager.c |    8 ++++----
 1 files 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]