[clutter/clutter-1.12] Fix compiler warnings by initializing variables (cherry picked from commit e317ca11fc27d83d9eb066341



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

    Fix compiler warnings by initializing variables
    (cherry picked from commit e317ca11fc27d83d9eb06634136d48f355d71562)
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 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 fcfebfc..85000e5 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -15152,10 +15152,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]