anv: Silence unused parameter warning in anv_image_get_clear_color_addr
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 May 2020 20:09:17 +0000 (13:09 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 16:47:08 +0000 (16:47 +0000)
...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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>

src/intel/vulkan/anv_private.h

index 1900cc178345f2623c2bf8ee5831c6a7ae323a10..5e3724534c3dce83dfbcafeded051b47da8386d7 100644 (file)
@@ -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)
 {