From: Kristian Høgsberg Kristensen Date: Fri, 5 Jun 2015 18:51:30 +0000 (-0700) Subject: vk: Quiet a few warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52637c0996a27ede5ec8fcd84d41e4875fb1b368;p=mesa.git vk: Quiet a few warnings --- 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;