radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jun 2019 07:53:26 +0000 (09:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jun 2019 07:53:26 +0000 (09:53 +0200)
Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c

index 2fd5f8b7a0788f155bc5bdda1e485a63c8ddcd4d..def60f7666ba29285b8b05f87ffbf214305cf3da 100644 (file)
@@ -3249,7 +3249,7 @@ void radv_CmdPushDescriptorSetKHR(
         * because it is invalid, according to Vulkan spec.
         */
        for (int i = 0; i < descriptorWriteCount; i++) {
-               const VkWriteDescriptorSet *writeset = &pDescriptorWrites[i];
+               MAYBE_UNUSED const VkWriteDescriptorSet *writeset = &pDescriptorWrites[i];
                assert(writeset->descriptorType != VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT);
        }