anv: fix warnings in release build
Mark variables MAYBE_UNUSED to avoid unused-but-set-variable warnings in release build. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Chad Versace <chad.versace@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:

committed by
Ian Romanick

parent
ff48375a16
commit
d14778656b
@@ -343,7 +343,7 @@ anv_validate_CreateImageView(VkDevice _device,
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_image, image, pCreateInfo->image);
|
||||
const VkImageSubresourceRange *subresource;
|
||||
const struct anv_format *view_format_info;
|
||||
MAYBE_UNUSED const struct anv_format *view_format_info;
|
||||
|
||||
/* Validate structure type before dereferencing it. */
|
||||
assert(pCreateInfo);
|
||||
|
Reference in New Issue
Block a user