summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-05 11:51:30 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-08 08:51:40 -0700
commit52637c0996a27ede5ec8fcd84d41e4875fb1b368 (patch)
tree87397316aa4060f017dd9ac5b1c28c508ac6f9d6
parent9eab70e54f40a13f55b29974ca7f765c1164f1be (diff)
vk: Quiet a few warnings
-rw-r--r--src/vulkan/device.c2
-rw-r--r--src/vulkan/image.c2
-rw-r--r--src/vulkan/pipeline.c2
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;