cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=665ac2aa07d975988c132eaf7cc182971101b19f
commit 665ac2aa07d975988c132eaf7cc182971101b19f Author: Anand <[email protected]> Date: Tue May 26 18:43:09 2015 +0200 test_glview: remove warning while compiling the elementary package Summary: test_glview.c: In function ‘_print_gl_log’: test_glview.c:347:10: warning: declaration of ‘log’ shadows a global declaration [-Wshadow] Reviewers: JackDanielZ Differential Revision: https://phab.enlightenment.org/D2577 Signed-off-by: Cedric BAIL <[email protected]> --- src/bin/test_glview.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/test_glview.c b/src/bin/test_glview.c index 6a7dad9..ceaf7cc 100644 --- a/src/bin/test_glview.c +++ b/src/bin/test_glview.c @@ -344,22 +344,22 @@ static void _print_gl_log(Evas_GL_API *gl, GLuint id) { GLint log_len = 0; - char *log; + char *log_info; if (gl->glIsShader(id)) gl->glGetShaderiv(id, GL_INFO_LOG_LENGTH, &log_len); else if (gl->glIsProgram(id)) gl->glGetProgramiv(id, GL_INFO_LOG_LENGTH, &log_len); - log = malloc(log_len * sizeof(char)); + log_info = malloc(log_len * sizeof(char)); if (gl->glIsShader(id)) - gl->glGetShaderInfoLog(id, log_len, NULL, log); + gl->glGetShaderInfoLog(id, log_len, NULL, log_info); else if (gl->glIsProgram(id)) - gl->glGetProgramInfoLog(id, log_len, NULL, log); + gl->glGetProgramInfoLog(id, log_len, NULL, log_info); - printf("%s", log); - free(log); + printf("%s", log_info); + free(log_info); } static void --
