From 6880b42cfc1a1b2f30ccd02df1956a78efbe5551 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 17 Jun 2019 09:53:26 +0200 Subject: [PATCH] radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR() Trivial. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 2fd5f8b7a07..def60f7666b 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -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); } -- 2.30.2