vk: Quiet a few warnings

This commit is contained in:
Kristian Høgsberg Kristensen
2015-06-05 11:51:30 -07:00
parent 9eab70e54f
commit 52637c0996
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -172,7 +172,7 @@ anv_image_view_init(struct anv_surface_view *view,
format = info->format;
break;
default:
assert(0);
unreachable("");
break;
}

View File

@@ -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;