From b3ca72ce1ea0d5e9ef1601dd35520f9fcf23cbca Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Thu, 29 Jan 2015 10:55:21 -0800 Subject: [PATCH] CpuConsumer: fix build error --- libs/gui/CpuConsumer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp index 7dea4ef31..73d34eb6e 100644 --- a/libs/gui/CpuConsumer.cpp +++ b/libs/gui/CpuConsumer.cpp @@ -22,7 +22,7 @@ #include #include -//#define CC_LOGV(x, ...) ALOGV("[%s] " x, mName.string(), ##__VA_ARGS__) +#define CC_LOGV(x, ...) ALOGV("[%s] " x, mName.string(), ##__VA_ARGS__) //#define CC_LOGD(x, ...) ALOGD("[%s] " x, mName.string(), ##__VA_ARGS__) //#define CC_LOGI(x, ...) ALOGI("[%s] " x, mName.string(), ##__VA_ARGS__) #define CC_LOGW(x, ...) ALOGW("[%s] " x, mName.string(), ##__VA_ARGS__) @@ -68,7 +68,7 @@ status_t CpuConsumer::setDefaultBufferFormat(PixelFormat defaultFormat) } static bool isPossiblyYUV(PixelFormat format) { - switch ((int)format) { + switch (static_cast(format)) { case HAL_PIXEL_FORMAT_RGBA_8888: case HAL_PIXEL_FORMAT_RGBX_8888: case HAL_PIXEL_FORMAT_RGB_888: