evas: get rid of clobbered warning.
authorCedric BAIL <cedric@osg.samsung.com>
Sat, 25 Apr 2015 17:59:18 +0000 (19:59 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Sat, 25 Apr 2015 17:59:18 +0000 (19:59 +0200)
src/modules/evas/image_loaders/png/evas_image_load_png.c

index a8e9aa32889052b86167731553d4929404fc8d4d..6b5395eada12848a13ab3187c77ae51281a4e3d8 100644 (file)
@@ -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;