[libgd] build: Fix -Wdeclaration-after-statement warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] build: Fix -Wdeclaration-after-statement warnings
- Date: Wed, 13 Feb 2013 14:05:58 +0000 (UTC)
commit b58dd85fb8135164d6ec2d121ed4d7610fe99fd8
Author: Christian Persch <chpe gnome org>
Date: Wed Feb 13 12:30:17 2013 +0100
build: Fix -Wdeclaration-after-statement warnings
libgd/gd-stack.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index 84fff89..765e3c7 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -380,11 +380,10 @@ gd_stack_xfade_cb (GdStack *stack)
{
GdStackPrivate *priv = stack->priv;
gint64 now;
+ gdouble t;
now = g_get_monotonic_time ();
- gdouble t;
-
t = 1.0;
if (now < priv->end_time)
t = (now - priv->start_time) / (double) (priv->end_time - priv->start_time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]