From 4cb2330e56568ae705e09e377ccc501051b2514e Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 11 May 2020 13:09:17 -0700 Subject: [PATCH] anv: Silence unused parameter warning in anv_image_get_clear_color_addr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ...in every file that includes anv_private.h. In file included from src/intel/vulkan/genX_cmd_buffer.c:27: src/intel/vulkan/anv_private.h: In function ‘anv_image_get_clear_color_addr’: src/intel/vulkan/anv_private.h:3690:57: warning: unused parameter ‘device’ [-Wunused-parameter] Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 1900cc17834..5e3724534c3 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -3704,7 +3704,7 @@ anv_image_aux_layers(const struct anv_image * const image, } static inline struct anv_address -anv_image_get_clear_color_addr(const struct anv_device *device, +anv_image_get_clear_color_addr(UNUSED const struct anv_device *device, const struct anv_image *image, VkImageAspectFlagBits aspect) { -- 2.30.2