[Mesa-dev] [PATCH mesa 2/2] radv: replace conditional compilation with MAYBE_UNUSED

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Sep 18 18:51:18 UTC 2017


Both patches are:

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

On 09/18/2017 07:15 PM, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
>   src/amd/vulkan/radv_wsi.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
> index 8a551c48bb..c9d4bbce8b 100644
> --- a/src/amd/vulkan/radv_wsi.c
> +++ b/src/amd/vulkan/radv_wsi.c
> @@ -27,12 +27,11 @@
>   #include "radv_meta.h"
>   #include "wsi_common.h"
>   #include "vk_util.h"
> +#include "util/macros.h"
>   
> -#ifdef VK_USE_PLATFORM_WAYLAND_KHR
> -static const struct wsi_callbacks wsi_cbs = {
> +MAYBE_UNUSED static const struct wsi_callbacks wsi_cbs = {
>      .get_phys_device_format_properties = radv_GetPhysicalDeviceFormatProperties,
>   };
> -#endif
>   
>   VkResult
>   radv_init_wsi(struct radv_physical_device *physical_device)
> 


More information about the mesa-dev mailing list