From 054dc5282de069191f0d599631803a8eda03e12a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 22 Mar 2019 23:35:04 +0000 Subject: [PATCH] vulkan: fix some compiler warnings in gnu89 mode for loop variable initialization and conflicting types for i. --- ext/vulkan/vkswapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vulkan/vkswapper.c b/ext/vulkan/vkswapper.c index 89f027d..f576195 100644 --- a/ext/vulkan/vkswapper.c +++ b/ext/vulkan/vkswapper.c @@ -616,7 +616,7 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps, * and is fastest (though it tears). If not, fall back to FIFO which is * always available. */ present_mode = VK_PRESENT_MODE_FIFO_KHR; - for (gsize i = 0; i < swapper->n_surf_present_modes; i++) { + for (i = 0; i < swapper->n_surf_present_modes; i++) { if (swapper->surf_present_modes[i] == VK_PRESENT_MODE_MAILBOX_KHR) { present_mode = VK_PRESENT_MODE_MAILBOX_KHR; break; -- 2.7.4