From: Pablo Ceballos Date: Fri, 18 Mar 2016 20:33:20 +0000 (+0000) Subject: BQ: fix some uninitialized variables am: 93c617f X-Git-Tag: android-x86-7.1-r1~326^2~2^2^2^2^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1ed24698aa431aa4c3198fa3b8e830f1c29812a6;p=android-x86%2Fframeworks-native.git BQ: fix some uninitialized variables am: 93c617f am: f16b857 * commit 'f16b85752d7344814663c658175cce1a933e976b': BQ: fix some uninitialized variables --- 1ed24698aa431aa4c3198fa3b8e830f1c29812a6 diff --cc libs/gui/IGraphicBufferConsumer.cpp index 3c0907ab53,590a25e4cc..6d3e43dfe1 --- a/libs/gui/IGraphicBufferConsumer.cpp +++ b/libs/gui/IGraphicBufferConsumer.cpp @@@ -343,26 -475,26 +343,26 @@@ status_t BnGraphicBufferConsumer::onTra status_t result = consumerDisconnect(); reply->writeInt32(result); return NO_ERROR; - } break; + } case GET_RELEASED_BUFFERS: { CHECK_INTERFACE(IGraphicBufferConsumer, data, reply); - uint64_t slotMask; + uint64_t slotMask = 0; status_t result = getReleasedBuffers(&slotMask); - reply->writeInt64(slotMask); + reply->writeInt64(static_cast(slotMask)); reply->writeInt32(result); return NO_ERROR; - } break; + } case SET_DEFAULT_BUFFER_SIZE: { CHECK_INTERFACE(IGraphicBufferConsumer, data, reply); - uint32_t w = data.readInt32(); - uint32_t h = data.readInt32(); - status_t result = setDefaultBufferSize(w, h); + uint32_t width = data.readUint32(); + uint32_t height = data.readUint32(); + status_t result = setDefaultBufferSize(width, height); reply->writeInt32(result); return NO_ERROR; - } break; + } case SET_DEFAULT_MAX_BUFFER_COUNT: { CHECK_INTERFACE(IGraphicBufferConsumer, data, reply); - uint32_t bufferCount = data.readInt32(); + int bufferCount = data.readInt32(); status_t result = setDefaultMaxBufferCount(bufferCount); reply->writeInt32(result); return NO_ERROR;