diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-03-13 23:18:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-13 23:18:43 +0000 |
commit | c45011f27209d5d548be3f96f2a23f7ff7f48c4c (patch) | |
tree | 89f759817f6ca11ae4ed715a207e3f6aa37fa09b /libs | |
parent | f4b08ebc61153afac8cab1e87ba015b142a394b6 (diff) | |
parent | cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba (diff) | |
download | frameworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.zip frameworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.tar.gz frameworks_native-c45011f27209d5d548be3f96f2a23f7ff7f48c4c.tar.bz2 |
am cdbf28b3: Merge "native frameworks: 64-bit compile issues"
* commit 'cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba':
native frameworks: 64-bit compile issues
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 6 | ||||
-rw-r--r-- | libs/ui/Region.cpp | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 31a69b2..918f2e7 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -259,8 +259,8 @@ int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, return 0; } -int FramebufferNativeWindow::lockBuffer_DEPRECATED(ANativeWindow* window, - ANativeWindowBuffer* buffer) +int FramebufferNativeWindow::lockBuffer_DEPRECATED(ANativeWindow* /*window*/, + ANativeWindowBuffer* /*buffer*/) { return NO_ERROR; } @@ -326,7 +326,7 @@ int FramebufferNativeWindow::query(const ANativeWindow* window, return BAD_VALUE; } -int FramebufferNativeWindow::perform(ANativeWindow* window, +int FramebufferNativeWindow::perform(ANativeWindow* /*window*/, int operation, ...) { switch (operation) { diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index e5abcf5..6d58f56 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -16,6 +16,7 @@ #define LOG_TAG "Region" +#include <inttypes.h> #include <limits.h> #include <utils/Log.h> @@ -798,7 +799,7 @@ void Region::dump(String8& out, const char* what, uint32_t flags) const size_t SIZE = 256; char buffer[SIZE]; - snprintf(buffer, SIZE, " Region %s (this=%p, count=%d)\n", + snprintf(buffer, SIZE, " Region %s (this=%p, count=%" PRIdPTR ")\n", what, this, tail-head); out.append(buffer); while (head != tail) { @@ -814,7 +815,7 @@ void Region::dump(const char* what, uint32_t flags) const (void)flags; const_iterator head = begin(); const_iterator const tail = end(); - ALOGD(" Region %s (this=%p, count=%d)\n", what, this, tail-head); + ALOGD(" Region %s (this=%p, count=%" PRIdPTR ")\n", what, this, tail-head); while (head != tail) { ALOGD(" [%3d, %3d, %3d, %3d]\n", head->left, head->top, head->right, head->bottom); |