summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand <anand.km@samsung.com>2015-05-26 18:43:09 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-26 18:43:12 +0200
commit665ac2aa07d975988c132eaf7cc182971101b19f (patch)
treeba580efe1b66a1f60ba35d8478f50dbf2dc3c196
parent4d72cad449a41e792113762d3162badb8f16720d (diff)
downloadelementary-665ac2aa07d975988c132eaf7cc182971101b19f.tar.gz
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 <cedric@osg.samsung.com>
-rw-r--r--src/bin/test_glview.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/test_glview.c b/src/bin/test_glview.c
index 6a7dad96a..ceaf7cc01 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