From d22155487b21d6910813ad0aa0d12b86fb7051b8 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 25 Apr 2015 19:59:18 +0200 Subject: [PATCH] evas: get rid of clobbered warning. --- .../evas/image_loaders/png/evas_image_load_png.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/evas/image_loaders/png/evas_image_load_png.c b/src/modules/evas/image_loaders/png/evas_image_load_png.c index a8e9aa3288..6b5395eada 100644 --- a/src/modules/evas/image_loaders/png/evas_image_load_png.c +++ b/src/modules/evas/image_loaders/png/evas_image_load_png.c @@ -94,7 +94,7 @@ evas_image_load_file_head_png(void *loader_data, png_uint_32 w32, h32; int bit_depth, color_type, interlace_type; char hasa; - Eina_Bool r = EINA_FALSE; + volatile Eina_Bool r = EINA_FALSE; opts = loader->opts; f = loader->f; @@ -218,10 +218,12 @@ evas_image_load_file_data_png(void *loader_data, unsigned int pack_offset; int w, h; int bit_depth, color_type, interlace_type; - char hasa, passes; + volatile char hasa; + char passes; int i, j, p, k; - int scale_ratio = 1, image_w = 0, image_h = 0; - Eina_Bool r = EINA_FALSE; + volatile int scale_ratio = 1; + int image_w = 0, image_h = 0; + volatile Eina_Bool r = EINA_FALSE; opts = loader->opts; f = loader->f;