Skip to content

Commit 9f5ace9

Browse files
lygstateMarge Bot
authored and
Marge Bot
committed
panvk: Fixes -Werror,-Wunused-but-set-variable for clang-15 in panvk_descriptor_set.c
../../src/panfrost/vulkan/panvk_descriptor_set.c:67:13: error: variable 'dynoffset_idx' set but not used [-Werror,-Wunused-but-set-variable] unsigned dynoffset_idx = 0, img_idx = 0; ^ Signed-off-by: Yonggang Luo <[email protected]> Reviewed-by: Jesse Natalie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19875>
1 parent fb6b3be commit 9f5ace9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/panfrost/vulkan/panvk_descriptor_set.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ panvk_GetDescriptorSetLayoutSupport(VkDevice _device,
6464
}
6565

6666
unsigned sampler_idx = 0, tex_idx = 0, ubo_idx = 0;
67-
unsigned dynoffset_idx = 0, img_idx = 0;
67+
unsigned img_idx = 0;
68+
UNUSED unsigned dynoffset_idx = 0;
6869

6970
for (unsigned i = 0; i < pCreateInfo->bindingCount; i++) {
7071
const VkDescriptorSetLayoutBinding *binding = &bindings[i];

0 commit comments

Comments
 (0)