warning--
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 19 Sep 2010 02:10:09 +0000 (02:10 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 19 Sep 2010 02:10:09 +0000 (02:10 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@52445 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_image.c
src/modules/engines/gl_common/evas_gl_texture.c

index 3980c8e..6466537 100644 (file)
@@ -463,7 +463,7 @@ _evas_gl_common_image_update(Evas_GL_Context *gc, Evas_GL_Image *im)
 
 void
 evas_gl_common_image_map4_draw(Evas_GL_Context *gc, Evas_GL_Image *im, 
-                               RGBA_Map_Point *p, int smooth, int level)
+                               RGBA_Map_Point *p, int smooth, int level __UNUSED__)
 {
    RGBA_Draw_Context *dc;
    int r, g, b, a;
index 28f67d4..8bb357f 100644 (file)
@@ -31,7 +31,7 @@ static struct {
    struct {
       int num, pix;
    } c, a, v, r, n, d;
-} texinfo = {0};
+} texinfo = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}};
 
 static void
 _print_tex_count(void)
@@ -170,7 +170,7 @@ _pool_tex_new(Evas_GL_Context *gc, int w, int h, int intformat, GLenum format)
 }
 
 static int
-_pool_tex_alloc(Evas_GL_Texture_Pool *pt, int w, int h, int *u, int *v, Eina_List **l_after)
+_pool_tex_alloc(Evas_GL_Texture_Pool *pt, int w, int h __UNUSED__, int *u, int *v, Eina_List **l_after)
 {
    Eina_List *l;
    Evas_GL_Texture *tex, *tex2;
@@ -600,6 +600,12 @@ _pool_tex_dynamic_new(Evas_GL_Context *gc, int w, int h, int intformat, int form
    
    glBindTexture(GL_TEXTURE_2D, gc->pipe[0].shader.cur_tex);
    GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+#else
+   gc = NULL;
+   w = 0;
+   h = 0;
+   intformat = 0;
+   format = 0;
 #endif  
    return pt;
 }
@@ -955,7 +961,7 @@ evas_gl_common_texture_alpha_new(Evas_GL_Context *gc, DATA8 *pixels,
 
 void
 evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels,
-                                    unsigned int w, unsigned int h, int fh)
+                                    unsigned int w, unsigned int h, int fh __UNUSED__)
 {
    if (!tex->pt) return;
    glBindTexture(GL_TEXTURE_2D, tex->pt->texture);