summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2017-10-26 15:18:12 -0700
committer Chih-Hung Hsieh <chh@google.com> 2017-10-26 15:20:53 -0700
commit1e02a62b7b88273b087c056af5d46896233a3e9d (patch)
treeba73d1ee23a522420a6229b6165dc979525ed646 /opengl/libagl/array.cpp
parent263921f53cdddc6becac4bfa07e3fb27764adc12 (diff)
Use -Werror in frameworks/native/opengl/libagl
* Remove unused local variables and functions. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib8e3ee6e3c1ee3cf1e26f265fc87890f1690c6a2
Diffstat (limited to 'opengl/libagl/array.cpp')
-rw-r--r--opengl/libagl/array.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/opengl/libagl/array.cpp b/opengl/libagl/array.cpp
index 54207fa212..2d36c6194e 100644
--- a/opengl/libagl/array.cpp
+++ b/opengl/libagl/array.cpp
@@ -136,9 +136,6 @@ void ogles_uninit_array(ogles_context_t* c)
static void currentColor(ogles_context_t* c, GLfixed* v, const GLvoid*) {
memcpy(v, c->current.color.v, sizeof(vec4_t));
}
-static void currentColor_clamp(ogles_context_t* c, GLfixed* v, const GLvoid*) {
- memcpy(v, c->currentColorClamped.v, sizeof(vec4_t));
-}
static void currentNormal(ogles_context_t* c, GLfixed* v, const GLvoid*) {
memcpy(v, c->currentNormal.v, sizeof(vec3_t));
}
@@ -349,6 +346,7 @@ void vertex_cache_t::init()
{
// make sure the size of vertex_t allows cache-line alignment
CTA<(sizeof(vertex_t) & 0x1F) == 0> assertAlignedSize;
+ (void)assertAlignedSize; // suppress unused warning.
const int align = 32;
const size_t s = VERTEX_BUFFER_SIZE + VERTEX_CACHE_SIZE;