From 0bfb2a78f1cf2e64e57723db11587199dad7b065 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Fri, 23 Mar 2018 15:42:08 +0900 Subject: [PATCH] Fixed some build warnings. Change-Id: I3ee06a3474ba7bc0b8f7bc36ee8c87bfd5212420 Signed-off-by: joonbum.ko --- src/wsi/display.c | 3 --- src/wsi/swapchain_tpl.c | 2 +- src/wsi/wsi.h | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) 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; }; -- 2.7.4