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)
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
344_print_gl_log(Evas_GL_API *gl, GLuint id) 344_print_gl_log(Evas_GL_API *gl, GLuint id)
345{ 345{
346 GLint log_len = 0; 346 GLint log_len = 0;
347 char *log; 347 char *log_info;
348 348
349 if (gl->glIsShader(id)) 349 if (gl->glIsShader(id))
350 gl->glGetShaderiv(id, GL_INFO_LOG_LENGTH, &log_len); 350 gl->glGetShaderiv(id, GL_INFO_LOG_LENGTH, &log_len);
351 else if (gl->glIsProgram(id)) 351 else if (gl->glIsProgram(id))
352 gl->glGetProgramiv(id, GL_INFO_LOG_LENGTH, &log_len); 352 gl->glGetProgramiv(id, GL_INFO_LOG_LENGTH, &log_len);
353 353
354 log = malloc(log_len * sizeof(char)); 354 log_info = malloc(log_len * sizeof(char));
355 355
356 if (gl->glIsShader(id)) 356 if (gl->glIsShader(id))
357 gl->glGetShaderInfoLog(id, log_len, NULL, log); 357 gl->glGetShaderInfoLog(id, log_len, NULL, log_info);
358 else if (gl->glIsProgram(id)) 358 else if (gl->glIsProgram(id))
359 gl->glGetProgramInfoLog(id, log_len, NULL, log); 359 gl->glGetProgramInfoLog(id, log_len, NULL, log_info);
360 360
361 printf("%s", log); 361 printf("%s", log_info);
362 free(log); 362 free(log_info);
363} 363}
364 364
365static void 365static void