From d14778656bf818bfb58b8a0ed2c2037b80d91ccb Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sat, 16 Apr 2016 04:00:15 +0300 Subject: 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 Reviewed-by: Chad Versace Reviewed-by: Emil Velikov --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_image.c') diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 03a8cb8..fb28389 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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); -- cgit v1.1