diff options
author | 2016-09-27 14:08:19 -0700 | |
---|---|---|
committer | 2016-09-30 19:51:44 +0000 | |
commit | 6e7e2b44efa6427cc106b20cea76d9a80dadcac9 (patch) | |
tree | 0c8b7987603b1a618c6a1f5561d95a9ab94a0e08 /libs/gui/BufferQueueConsumer.cpp | |
parent | 64b463a69b84f89d31c020b6018271a7a74007b4 (diff) |
Fix logging implicit sign conversions
The warnings were being hidden by the use of -isystem to include
frameworks/native/include.
Bug: 31752268
Test: m -j
Change-Id: I2ce11db524ee9d8f846fdf3ed6fb882d5ef57956
(cherry picked from commit 152c3b749a8ec634afc66dddef7d33130472aeb1)
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
-rw-r--r-- | libs/gui/BufferQueueConsumer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index ca2a374e16..fc53dbdc95 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -259,7 +259,8 @@ status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer, // decrease. mCore->mDequeueCondition.broadcast(); - ATRACE_INT(mCore->mConsumerName.string(), mCore->mQueue.size()); + ATRACE_INT(mCore->mConsumerName.string(), + static_cast<int32_t>(mCore->mQueue.size())); mCore->mOccupancyTracker.registerOccupancyChange(mCore->mQueue.size()); VALIDATE_CONSISTENCY(); @@ -740,7 +741,8 @@ void BufferQueueConsumer::dump(String8& result, const char* prefix) const { "android.permission.DUMP"), pid, uid)) { result.appendFormat("Permission Denial: can't dump BufferQueueConsumer " "from pid=%d, uid=%d\n", pid, uid); - android_errorWriteWithInfoLog(0x534e4554, "27046057", uid, NULL, 0); + android_errorWriteWithInfoLog(0x534e4554, "27046057", + static_cast<int32_t>(uid), NULL, 0); } else { mCore->dump(result, prefix); } |