From: joonbum.ko Date: Fri, 23 Mar 2018 06:42:08 +0000 (+0900) Subject: Fixed some build warnings. X-Git-Tag: accepted/tizen/unified/20180326.075301~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F173692%2F1;p=platform%2Fcore%2Fuifw%2Fvulkan-wsi-tizen.git Fixed some build warnings. Change-Id: I3ee06a3474ba7bc0b8f7bc36ee8c87bfd5212420 Signed-off-by: joonbum.ko --- diff --git a/src/wsi/display.c b/src/wsi/display.c index acb2795..c8ef77b 100644 --- a/src/wsi/display.c +++ b/src/wsi/display.c @@ -163,9 +163,6 @@ vk_physical_device_fini_display(vk_physical_device_t *pdev) VkBool32 vk_physical_device_init_display(vk_physical_device_t *pdev) { - tdm_error err; - int output_count, i; - /* Cannot support the feature direct display */ pdev->tdm_display = NULL; pdev->display_count = 0; diff --git a/src/wsi/swapchain_tpl.c b/src/wsi/swapchain_tpl.c index ca43154..cc1fee9 100644 --- a/src/wsi/swapchain_tpl.c +++ b/src/wsi/swapchain_tpl.c @@ -159,7 +159,7 @@ swapchain_tpl_init(VkDevice device, swapchain_tpl->tpl_surface = tpl_surface_get(swapchain_tpl->tpl_display, native_window); if (swapchain_tpl->tpl_surface) - tpl_object_reference(swapchain_tpl->tpl_surface); + tpl_object_reference((tpl_object_t *)swapchain_tpl->tpl_surface); else swapchain_tpl->tpl_surface = tpl_surface_create(swapchain_tpl->tpl_display, native_window, diff --git a/src/wsi/wsi.h b/src/wsi/wsi.h index b571258..d371067 100644 --- a/src/wsi/wsi.h +++ b/src/wsi/wsi.h @@ -199,7 +199,7 @@ vk_get_tpl_display(VkIcdSurfaceBase *sfc) if (display == NULL) display = tpl_display_create(type, native_dpy); else - tpl_object_reference(display); + tpl_object_reference((tpl_object_t *)display); return display; };