Mesa (master): radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 17 07:51:05 UTC 2019


Module: Mesa
Branch: master
Commit: 6880b42cfc1a1b2f30ccd02df1956a78efbe5551
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6880b42cfc1a1b2f30ccd02df1956a78efbe5551

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Jun 17 09:53:26 2019 +0200

radv: silent a compiler warning in radv_CmdPushDescriptorSetKHR()

Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 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);
 	}
 




More information about the mesa-commit mailing list