vk: Quiet a few warnings
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 5 Jun 2015 18:51:30 +0000 (11:51 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 8 Jun 2015 15:51:40 +0000 (08:51 -0700)
src/vulkan/device.c
src/vulkan/image.c
src/vulkan/pipeline.c

index 3aa1c39aaec91bca914fe416ab0f30e3d58c6aed..32de1b4a2303baacab0b9a9dff702fb0c4a41521 100644 (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;
index 14e9e3d5e6132c0746e9c54a721882a42f414ca6..a7d1d49114d0df445ca96d82712b4244c3fd80b2 100644 (file)
@@ -172,7 +172,7 @@ anv_image_view_init(struct anv_surface_view *view,
       format = info->format;
       break;
    default:
-      assert(0);
+      unreachable("");
       break;
    }
 
index 2e965245789de83404518a448aaa8d8c7b6b1162..1a193d91e09196e8124b4ec444e3532d1930b8fc 100644 (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;