mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
radv: Fix compiler warning about uninitialized 'set'
The compiler doesn't figure out that we only get result == VK_SUCCESS if set got initialized. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
21670f8208
commit
1aed66dc1e
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ VkResult radv_AllocateDescriptorSets(
|
|||
|
||||
VkResult result = VK_SUCCESS;
|
||||
uint32_t i;
|
||||
struct radv_descriptor_set *set;
|
||||
struct radv_descriptor_set *set = NULL;
|
||||
|
||||
/* allocate a set of buffers for each shader to contain descriptors */
|
||||
for (i = 0; i < pAllocateInfo->descriptorSetCount; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue