diff options
| author | 2023-12-05 17:48:24 +0900 | |
|---|---|---|
| committer | 2023-12-05 17:49:56 +0900 | |
| commit | 6fcddef27d4738dd327f16e7936124ccb8f99e0f (patch) | |
| tree | 01f129d2e2f8d9165a15577b993dd99f9f323ed0 /libs/ui/Gralloc4.cpp | |
| parent | 23105de873f9c2abcde0f06556c387e3370b5380 (diff) | |
Fix -Wunused-variable compiler warning
Test: presubmit
Change-Id: Ic971c18541505b0ac49d1473a87523e8fdb8ab29
Diffstat (limited to 'libs/ui/Gralloc4.cpp')
| -rw-r--r-- | libs/ui/Gralloc4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |