From e7e3e2072cb6d76c2372e31d1a1d375669e039c6 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Tue, 28 Dec 2021 16:31:13 +0100 Subject: [PATCH] panfrost: mark two variables as unused The variables are currently unused as panvk does not support SSBOs yet. Silences a compile warning with clang Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_descriptor_set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_descriptor_set.c b/src/panfrost/vulkan/panvk_descriptor_set.c index dd9b5a70234..bf469a59e29 100644 --- a/src/panfrost/vulkan/panvk_descriptor_set.c +++ b/src/panfrost/vulkan/panvk_descriptor_set.c @@ -202,7 +202,8 @@ panvk_GetDescriptorSetLayoutSupport(VkDevice _device, return; } - unsigned sampler_idx = 0, tex_idx = 0, ubo_idx = 0, ssbo_idx = 0, dynoffset_idx = 0; + unsigned sampler_idx = 0, tex_idx = 0, ubo_idx = 0, UNUSED ssbo_idx = 0, + UNUSED dynoffset_idx = 0; for (unsigned i = 0; i < pCreateInfo->bindingCount; i++) { const VkDescriptorSetLayoutBinding *binding = &bindings[i];