From: Samuel Pitoiset Date: Mon, 17 Jun 2019 07:53:26 +0000 (+0200) Subject: radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6880b42cfc1a1b2f30ccd02df1956a78efbe5551;p=mesa.git radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR() Trivial. Signed-off-by: Samuel Pitoiset --- 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); }