[clutter/clutter-1.14] Fix compiler warnings by initializing variables



commit 7ef97ae051e8479a0e66553da38e65d86c714c51
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Feb 21 00:37:58 2013 +0000

    Fix compiler warnings by initializing variables

 clutter/clutter-actor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 09fa442..0e5c516 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -15184,10 +15184,10 @@ clutter_actor_allocate_align_fill (ClutterActor           *self,
                                    ClutterAllocationFlags  flags)
 {
   ClutterActorPrivate *priv;
-  ClutterActorBox allocation = { 0, };
+  ClutterActorBox allocation = CLUTTER_ACTOR_BOX_INIT_ZERO;
   gfloat x_offset, y_offset;
   gfloat available_width, available_height;
-  gfloat child_width, child_height;
+  gfloat child_width = 0.f, child_height = 0.f;
 
   g_return_if_fail (CLUTTER_IS_ACTOR (self));
   g_return_if_fail (box != NULL);


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