diff options
author | Grazvydas Ignotas <[email protected]> | 2016-04-16 04:00:15 +0300 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-04-25 12:23:31 +0200 |
commit | d14778656bf818bfb58b8a0ed2c2037b80d91ccb (patch) | |
tree | d176ebc0dbc6a1b422143ef0937e57c9ee7e0128 /src | |
parent | ff48375a164b8bd07882481c2f6caf3d8f1f5617 (diff) |
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 <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_dump.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/gen8_cmd_buffer.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_dump.c b/src/intel/vulkan/anv_dump.c index b7fa28be787..63ad2cd070a 100644 --- a/src/intel/vulkan/anv_dump.c +++ b/src/intel/vulkan/anv_dump.c @@ -33,7 +33,7 @@ anv_dump_image_to_ppm(struct anv_device *device, unsigned array_layer, const char *filename) { VkDevice vk_device = anv_device_to_handle(device); - VkResult result; + MAYBE_UNUSED VkResult result; VkExtent2D extent = { image->extent.width, image->extent.height }; for (unsigned i = 0; i < miplevel; i++) { diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 03a8cb88d90..fb2838924dd 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); diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index 9bc949ddeef..03ce889088a 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -379,7 +379,7 @@ genX(cmd_buffer_flush_compute_state)(struct anv_cmd_buffer *cmd_buffer) { struct anv_pipeline *pipeline = cmd_buffer->state.compute_pipeline; const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline); - VkResult result; + MAYBE_UNUSED VkResult result; assert(pipeline->active_stages == VK_SHADER_STAGE_COMPUTE_BIT); diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c index 47a9d71f91e..d078dac8ca3 100644 --- a/src/intel/vulkan/gen8_cmd_buffer.c +++ b/src/intel/vulkan/gen8_cmd_buffer.c @@ -444,7 +444,7 @@ genX(cmd_buffer_flush_compute_state)(struct anv_cmd_buffer *cmd_buffer) { struct anv_pipeline *pipeline = cmd_buffer->state.compute_pipeline; const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline); - VkResult result; + MAYBE_UNUSED VkResult result; assert(pipeline->active_stages == VK_SHADER_STAGE_COMPUTE_BIT); |