[Mesa-dev] [PATCH] anv: silence unused warning when building without debug

Dylan Baker dylan at pnwbakers.com
Tue Apr 11 17:50:24 UTC 2017


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 35ef4c486b..3c5deff835 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1955,7 +1955,7 @@ VkResult anv_WaitForFences(
     uint64_t                                    _timeout)
 {
    ANV_FROM_HANDLE(anv_device, device, _device);
-   int ret;
+   UNUSED int ret;
 
    if (unlikely(device->lost))
       return VK_ERROR_DEVICE_LOST;
-- 
2.12.2



More information about the mesa-dev mailing list