[clutter] Fix compiler warnings by initializing variables
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Fix compiler warnings by initializing variables
- Date: Thu, 21 Feb 2013 00:39:28 +0000 (UTC)
commit e317ca11fc27d83d9eb06634136d48f355d71562
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]