From 0b6f56aa34352f77d324571036e1fced59fcffc7 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 11 Jan 2012 10:40:17 +0000 Subject: [PATCH] Evas (software_generic): Add UNUSED for params that are not used (where missing). Remove unused variables. Comment out functions that were defined but not used. SVN revision: 67066 --- .../engines/software_generic/evas_engine.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/legacy/evas/src/modules/engines/software_generic/evas_engine.c b/legacy/evas/src/modules/engines/software_generic/evas_engine.c index 831a5074d7..48944dd8a4 100644 --- a/legacy/evas/src/modules/engines/software_generic/evas_engine.c +++ b/legacy/evas/src/modules/engines/software_generic/evas_engine.c @@ -265,9 +265,9 @@ static void (*_sym_glVertexAttribPointer) (GLuint indx, GL static void (*_sym_glViewport) (GLint x, GLint y, GLsizei width, GLsizei height) = NULL; // GLES Extensions... -static void (*_sym_glGetProgramBinary) (GLuint a, GLsizei b, GLsizei* c, GLenum* d, void* e) = NULL; -static void (*_sym_glProgramBinary) (GLuint a, GLenum b, const void* c, GLint d) = NULL; -static void (*_sym_glProgramParameteri) (GLuint a, GLuint b, GLint d) = NULL; +/* static void (*_sym_glGetProgramBinary) (GLuint a, GLsizei b, GLsizei* c, GLenum* d, void* e) = NULL; */ +/* static void (*_sym_glProgramBinary) (GLuint a, GLenum b, const void* c, GLint d) = NULL; */ +/* static void (*_sym_glProgramParameteri) (GLuint a, GLuint b, GLint d) = NULL; */ #endif /* @@ -1593,7 +1593,7 @@ eng_gl_make_current(void *data __UNUSED__, void *surface, void *context) // FIXME!!! Implement later static void * -eng_gl_string_query(void *data, int name) +eng_gl_string_query(void *data __UNUSED__, int name __UNUSED__) { return NULL; } @@ -2469,13 +2469,7 @@ patch_gles_shader(const char *source, int length, int *patched_len) static void evgl_glShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length) { - char *newstr; - char *srcbk; - char *token = NULL; - char *saveptr; - int i = 0; - int len = 0; - int token_len = 0; + int i = 0, len = 0; char **s = malloc(count * sizeof(char*)); GLint *l = malloc(count * sizeof(GLint)); @@ -2548,7 +2542,7 @@ evgl_glReleaseShaderCompiler(void) } static void -evgl_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length) +evgl_glShaderBinary(GLsizei n __UNUSED__, const GLuint* shaders __UNUSED__, GLenum binaryformat __UNUSED__, const void* binary __UNUSED__, GLsizei length __UNUSED__) { // FIXME: need to dlsym/getprocaddress for this DBG("Not supported in Desktop GL");