vulkan: fix some compiler warnings in gnu89 mode
authorTim-Philipp Müller <tim@centricular.com>
Fri, 22 Mar 2019 23:35:04 +0000 (23:35 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 22 Mar 2019 23:39:04 +0000 (23:39 +0000)
for loop variable initialization and conflicting types for i.

ext/vulkan/vkswapper.c

index 89f027d..f576195 100644 (file)
@@ -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;