diff options
author | Rob Tsuk <robtsuk@google.com> | 2014-11-12 16:23:03 -0800 |
---|---|---|
committer | Rob Tsuk <robtsuk@google.com> | 2014-11-12 16:24:59 -0800 |
commit | cc3cfdbe8a1bae75a2033f7f79cbc30c9b4accad (patch) | |
tree | 0232819a454744377cc25ab86ba3a293298e2782 /libs/hwui/tests | |
parent | d71152fc8d21b0fdac9617aea76395f6bd850014 (diff) | |
download | frameworks_base-cc3cfdbe8a1bae75a2033f7f79cbc30c9b4accad.zip frameworks_base-cc3cfdbe8a1bae75a2033f7f79cbc30c9b4accad.tar.gz frameworks_base-cc3cfdbe8a1bae75a2033f7f79cbc30c9b4accad.tar.bz2 |
Fix warnings in hwiu test app
So it's easier to see warnings about actual
problems with new changes.
Change-Id: I992711bf12bb25fbfd87fcab15993d5c5f66f46c
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r-- | libs/hwui/tests/Android.mk | 1 | ||||
-rw-r--r-- | libs/hwui/tests/main.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/tests/Android.mk b/libs/hwui/tests/Android.mk index 9622073..ce35788 100644 --- a/libs/hwui/tests/Android.mk +++ b/libs/hwui/tests/Android.mk @@ -20,6 +20,7 @@ include $(CLEAR_VARS) LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" +LOCAL_CFLAGS += -Wno-unused-parameter LOCAL_SRC_FILES:= \ TestContext.cpp \ diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp index 2d99e9f..64ee5f6 100644 --- a/libs/hwui/tests/main.cpp +++ b/libs/hwui/tests/main.cpp @@ -111,7 +111,7 @@ int main(int argc, char* argv[]) { for (int i = 0; i < 150; i++) { ATRACE_NAME("UI-Draw Frame"); - for (int ci = 0; ci < cards.size(); ci++) { + for (size_t ci = 0; ci < cards.size(); ci++) { cards[ci]->mutateStagingProperties().setTranslationX(i); cards[ci]->mutateStagingProperties().setTranslationY(i); cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); |