summaryrefslogtreecommitdiff
path: root/opengl/tests/gl2_basic/gl2_basic.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-11-14 15:08:56 -0800
committerChih-hung Hsieh <chh@google.com>2017-11-15 02:00:26 +0000
commit7e9cd8e8f8395f2a00946c477a4a52912beadbe0 (patch)
treed772a28026d98bc004b11731fb11256166094bd3 /opengl/tests/gl2_basic/gl2_basic.cpp
parentd3a7a4c6ebeef8000ee7856f95302ca04f0fccaf (diff)
Use -Werror in frameworks/native/opengl/tests
* Remove or comment out unused local variables. * Remove unused function. * Cast print argument type to fix format mismatch warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I81e80849ac36288932df235cb0d63bd870357d86
Diffstat (limited to 'opengl/tests/gl2_basic/gl2_basic.cpp')
-rw-r--r--opengl/tests/gl2_basic/gl2_basic.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/opengl/tests/gl2_basic/gl2_basic.cpp b/opengl/tests/gl2_basic/gl2_basic.cpp
index 67c0969e21..13f6fba92e 100644
--- a/opengl/tests/gl2_basic/gl2_basic.cpp
+++ b/opengl/tests/gl2_basic/gl2_basic.cpp
@@ -340,7 +340,6 @@ int main(int /*argc*/, char** /*argv*/) {
checkEglError("eglQuerySurface");
eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
checkEglError("eglQuerySurface");
- GLint dim = w < h ? w : h;
fprintf(stderr, "Window dimensions: %d x %d\n", w, h);