From cee78bdc1fd8571f767275ec98d91ee3450e2ec1 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sat, 21 May 2011 22:28:13 +0000 Subject: [PATCH] Evas: Initialize some variables to zero (to remove compiler warnings). SVN revision: 59569 --- legacy/evas/src/lib/canvas/evas_filter.c | 34 +++++++++---------- .../evas/src/lib/canvas/evas_object_image.c | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_filter.c b/legacy/evas/src/lib/canvas/evas_filter.c index 42e9053a0a..267c42202c 100644 --- a/legacy/evas/src/lib/canvas/evas_filter.c +++ b/legacy/evas/src/lib/canvas/evas_filter.c @@ -650,9 +650,9 @@ static int gaussian_filter_h(int rad, uint32_t *in, int w, uint32_t *out) { const uint32_t *points; - int npoints; - uint32_t weight; - int i, k; + int npoints = 0; + uint32_t weight = 0; + int i = 0, k = 0; uint32_t r, g, b, a; /* Get twice the radius: even rows have 1 element */ @@ -680,9 +680,9 @@ static int gaussian_filter_hd(int rad, uint32_t *in, int w, uint32_t *out) { const double *points; - int npoints; - double weight; - int i, k; + int npoints = 0; + double weight = 0.0; + int i = 0, k = 0; double r, g, b, a; /* Get twice the radius: even rows have 1 element */ @@ -711,9 +711,9 @@ static int gaussian_filter_h64(int rad, uint32_t *in, int w, uint32_t *out) { const uint64_t *points; - int npoints; - uint64_t weight; - int i, k; + int npoints = 0; + uint64_t weight = 0; + int i = 0, k = 0; uint64_t r, g, b, a; /* Get twice the radius: even rows have 1 element */ @@ -738,9 +738,9 @@ static int gaussian_filter_v(int rad, uint32_t *in, int h, int skip, uint32_t *out) { const uint32_t *points; - int npoints; - uint32_t weight; - int i, k; + int npoints = 0; + uint32_t weight = 0; + int i = 0, k = 0; uint32_t r, g, b, a; /* Get twice the radius: even rows have 1 element */ @@ -770,9 +770,9 @@ static int gaussian_filter_v64(int rad, uint32_t *in, int h, int skip, uint32_t *out) { const uint64_t *points; - int npoints; + int npoints = 0; uint64_t weight; - int i, k; + int i = 0, k = 0; uint64_t r, g, b, a; /* Get twice the radius: even rows have 1 element */ @@ -802,9 +802,9 @@ static int gaussian_filter_vd(int rad, uint32_t *in, int h, int skip, uint32_t *out) { const double *points; - int npoints; - double weight; - int i, k; + int npoints = 0; + double weight = 0.0; + int i = 0, k = 0; double r, g, b, a; /* Get twice the radius: even rows have 1 element */ diff --git a/legacy/evas/src/lib/canvas/evas_object_image.c b/legacy/evas/src/lib/canvas/evas_object_image.c index d905cc5885..560bc7d57c 100644 --- a/legacy/evas/src/lib/canvas/evas_object_image.c +++ b/legacy/evas/src/lib/canvas/evas_object_image.c @@ -2833,7 +2833,7 @@ static void evas_object_image_render_pre(Evas_Object *obj) { Evas_Object_Image *o; - int is_v, was_v; + int is_v = 0, was_v = 0; Evas *e; /* dont pre-render the obj twice! */