YaGL: Fix debug build with tizen platform 09/71209/1
authorVasiliy Ulyanov <v.ulyanov@samsung.com>
Tue, 24 May 2016 11:10:13 +0000 (14:10 +0300)
committerVasiliy Ulyanov <v.ulyanov@samsung.com>
Tue, 24 May 2016 11:10:13 +0000 (14:10 +0300)
The macro YAGL_LOG_FUNC_SET initilizes logger specific local vars like
pid, tid, etc. There is no need to use it if the function actually does
not produce any logs, since it may lead to 'unused variable' compiler
errors.

Change-Id: I9f9c2ccba7b8364d60891a1748fc62d5b2516fbf
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
EGL/tizen/yagl_tizen_platform.c
EGL/tizen/yagl_tizen_window.c

index a35f55ed40891bd328a72face3794d8684390004..a3897a87e618896075e013a89d19247bae156362 100644 (file)
@@ -49,8 +49,6 @@ static struct yagl_native_display
 {
     struct yagl_native_display *dpy = NULL;
 
-    YAGL_LOG_FUNC_SET(eglGetDisplay);
-
     dpy = yagl_tizen_display_create(&yagl_tizen_platform,os_dpy);
 
     return dpy;
index b97e228930f62dc37279954909205ce90b1225a4..56c338eaae92677f7fc5c5325acebaf2b04d8165 100644 (file)
@@ -150,8 +150,6 @@ static int yagl_tizen_window_get_buffer_age(struct yagl_native_drawable *drawabl
 {
     struct yagl_tizen_window *window = (struct yagl_tizen_window*)drawable;
 
-    YAGL_LOG_FUNC_SET(yagl_tizen_window_get_buffer_age);
-
     return window->back ? window->back->age : 0;
 }
 
@@ -254,8 +252,6 @@ struct yagl_native_drawable
     tpl_display_t *tpl_display = NULL;
     tpl_surface_t *tpl_surface = NULL;
 
-    YAGL_LOG_FUNC_SET(yagl_tizen_window_create);
-
     window = yagl_malloc0(sizeof(*window));
 
     yagl_native_drawable_init(&window->base, dpy, os_window);