From 1e02a62b7b88273b087c056af5d46896233a3e9d Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 26 Oct 2017 15:18:12 -0700 Subject: Use -Werror in frameworks/native/opengl/libagl * Remove unused local variables and functions. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib8e3ee6e3c1ee3cf1e26f265fc87890f1690c6a2 --- opengl/libagl/egl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opengl/libagl/egl.cpp') diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index b79051c499..be437054ce 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -81,7 +81,9 @@ namespace android { const unsigned int NUM_DISPLAYS = 1; +#ifndef __ANDROID__ static pthread_mutex_t gInitMutex = PTHREAD_MUTEX_INITIALIZER; +#endif static pthread_mutex_t gErrorKeyMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_key_t gEGLErrorKey = -1; #ifndef __ANDROID__ @@ -1776,7 +1778,6 @@ EGLBoolean eglMakeCurrent( EGLDisplay dpy, EGLSurface draw, // if we're detaching, we need the current context current_ctx = (EGLContext)getGlThreadSpecific(); } else { - egl_context_t* c = egl_context_t::context(ctx); egl_surface_t* d = (egl_surface_t*)draw; egl_surface_t* r = (egl_surface_t*)read; if ((d && d->ctx && d->ctx != ctx) || -- cgit v1.2.3-59-g8ed1b