From 52637c0996a27ede5ec8fcd84d41e4875fb1b368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Fri, 5 Jun 2015 11:51:30 -0700 Subject: [PATCH] vk: Quiet a few warnings --- src/vulkan/device.c | 2 +- src/vulkan/image.c | 2 +- src/vulkan/pipeline.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 3aa1c39aaec..32de1b4a230 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1348,7 +1348,7 @@ VkResult anv_ResetFences( { struct anv_fence **fences = (struct anv_fence **) pFences; - for (uint32_t i; i < fenceCount; i++) + for (uint32_t i = 0; i < fenceCount; i++) fences[i]->ready = false; return VK_SUCCESS; diff --git a/src/vulkan/image.c b/src/vulkan/image.c index 14e9e3d5e61..a7d1d49114d 100644 --- a/src/vulkan/image.c +++ b/src/vulkan/image.c @@ -172,7 +172,7 @@ anv_image_view_init(struct anv_surface_view *view, format = info->format; break; default: - assert(0); + unreachable(""); break; } diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c index 2e965245789..1a193d91e09 100644 --- a/src/vulkan/pipeline.c +++ b/src/vulkan/pipeline.c @@ -399,7 +399,7 @@ anv_pipeline_create( VkPipelineRsStateCreateInfo *rs_info = NULL; VkPipelineDsStateCreateInfo *ds_info = NULL; VkPipelineCbStateCreateInfo *cb_info = NULL; - VkPipelineVertexInputCreateInfo *vi_info; + VkPipelineVertexInputCreateInfo *vi_info = NULL; VkResult result; uint32_t offset, length; -- 2.30.2