From a8f7bb40e124c6d83da1efa2be74c9460d3bbd32 Mon Sep 17 00:00:00 2001 From: Ginu Jacob Date: Thu, 30 Jan 2025 11:50:15 +0000 Subject: [PATCH] Fix the error caused in release builds due to unused variables The variables 'physicalDevice' and 'planeIndex' are unused in release builds in the following APIs causing build error: GetDisplayPlaneCapabilitiesKHR GetDisplayPlaneSupportedDisplaysKHR GetPhysicalDeviceDisplayPlanePropertiesKHR GetPhysicalDeviceDisplayPropertiesKHR This issue is fixed in this change. Signed-off-by: Ginu Jacob Change-Id: Id34f5162204249b5c1604a1eb4ba198b60393bee --- wsi/display/surface_properties.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wsi/display/surface_properties.cpp b/wsi/display/surface_properties.cpp index 0d57242..f20cd09 100644 --- a/wsi/display/surface_properties.cpp +++ b/wsi/display/surface_properties.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Arm Limited. + * Copyright (c) 2024-2025 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -307,6 +307,8 @@ VWL_VKAPI_CALL(VkResult) GetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR *pCapabilities) { + UNUSED(physicalDevice); + UNUSED(planeIndex); assert(physicalDevice != VK_NULL_HANDLE); assert(mode != VK_NULL_HANDLE); assert(pCapabilities != nullptr); @@ -355,6 +357,8 @@ VWL_VKAPI_CALL(VkResult) GetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t *pDisplayCount, VkDisplayKHR *pDisplays) { + UNUSED(physicalDevice); + UNUSED(planeIndex); assert(physicalDevice != VK_NULL_HANDLE); assert(pDisplayCount != nullptr); @@ -392,6 +396,7 @@ VWL_VKAPI_CALL(VkResult) GetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount, VkDisplayPlanePropertiesKHR *pProperties) { + UNUSED(physicalDevice); assert(physicalDevice != VK_NULL_HANDLE); assert(pPropertyCount != nullptr); @@ -432,6 +437,7 @@ VWL_VKAPI_CALL(VkResult) GetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount, VkDisplayPropertiesKHR *pProperties) { + UNUSED(physicalDevice); assert(physicalDevice != VK_NULL_HANDLE); assert(pPropertyCount != nullptr);