From 6fcddef27d4738dd327f16e7936124ccb8f99e0f Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 5 Dec 2023 17:48:24 +0900 Subject: Fix -Wunused-variable compiler warning Test: presubmit Change-Id: Ic971c18541505b0ac49d1473a87523e8fdb8ab29 --- libs/ui/Gralloc4.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ui/Gralloc4.cpp') diff --git a/libs/ui/Gralloc4.cpp b/libs/ui/Gralloc4.cpp index b6274ab9c0..03ff58a76c 100644 --- a/libs/ui/Gralloc4.cpp +++ b/libs/ui/Gralloc4.cpp @@ -468,8 +468,8 @@ status_t Gralloc4Mapper::isSupported(uint32_t width, uint32_t height, PixelForma uint32_t layerCount, uint64_t usage, bool* outSupported) const { IMapper::BufferDescriptorInfo descriptorInfo; - if (auto error = sBufferDescriptorInfo("isSupported", width, height, format, layerCount, usage, - &descriptorInfo) != OK) { + if (sBufferDescriptorInfo("isSupported", width, height, format, layerCount, usage, + &descriptorInfo) != OK) { // Usage isn't known to the HAL or otherwise failed validation. *outSupported = false; return OK; -- cgit v1.2.3-59-g8ed1b