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:
Grazvydas Ignotas
2016-04-16 04:00:15 +03:00
committed by Ian Romanick
parent ff48375a16
commit d14778656b
4 changed files with 4 additions and 4 deletions

View File

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