[gegl] displace: explicitly initialize cx and cy variable to silence gcc
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] displace: explicitly initialize cx and cy variable to silence gcc
- Date: Wed, 16 Sep 2015 20:40:12 +0000 (UTC)
commit aa40adf902d6baaf8191c5b0a075ebe990053e39
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Sep 16 22:39:22 2015 +0200
displace: explicitly initialize cx and cy variable to silence gcc
operations/common/displace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/displace.c b/operations/common/displace.c
index 1190378..dbeb2a3 100644
--- a/operations/common/displace.c
+++ b/operations/common/displace.c
@@ -231,7 +231,7 @@ process (GeglOperation *operation,
GeglSampler *in_sampler;
gint x, y;
- gdouble cx, cy;
+ gdouble cx = 0, cy = 0;
gfloat *in_pixel;
gint n_components;
gint aux_index, aux2_index;
@@ -258,10 +258,10 @@ process (GeglOperation *operation,
GEGL_ACCESS_READ, o->abyss_policy);
if (o->displace_mode == GEGL_DISPLACE_MODE_POLAR)
- {
+ {
cx = gegl_buffer_get_width (input) / 2.0;
cy = gegl_buffer_get_height (input) / 2.0;
- }
+ }
while (gegl_buffer_iterator_next (iter))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]