From: huiyu.eun Date: Thu, 27 Jul 2017 07:09:15 +0000 (+0900) Subject: evas_gl: Fix build warnings X-Git-Tag: accepted/tizen/4.0/unified/20170816.011633~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=103edcb517d1d4c48b22cee7514788145ebc720b;p=platform%2Fupstream%2Fefl.git evas_gl: Fix build warnings Change-Id: Ic487fdab4f80e917c2b52760c5bb22c0ede2cff2 Signed-off-by: huiyu.eun --- diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c index ef2c9c0..e033e3c 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -1146,8 +1146,8 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int GL_TH(glPixelStorei, GL_UNPACK_ROW_LENGTH, 0); GL_TH(glPixelStorei, GL_UNPACK_ALIGNMENT, bytes_count); - if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.w) && - (tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.h)) + if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > (int)im->cache_entry.w) && + (tex->gc->shared->info.tune.atlas.max_memcpy_size > (int)im->cache_entry.h)) { int sw, sh, dw, dh; @@ -1161,8 +1161,8 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int ERR("memory allocation is failed.."); return; } - DATA8 *dp = (unsigned char *)temp; - DATA8 *sp = (unsigned char *)im->image.data; + DATA8 *dp = (DATA8 *) temp; + DATA8 *sp = (DATA8 *) im->image.data; int i; dp += (dw * bytes_count); @@ -1185,7 +1185,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int // ooooo memcpy(dp, dp - (dw * bytes_count), dw * bytes_count); - dp = temp; + dp = (DATA8 *) temp; // ooooo // xxxxx memcpy(dp, dp + (dw * bytes_count), dw * bytes_count);