summaryrefslogtreecommitdiff
path: root/opengl/libagl/primitives.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/primitives.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/primitives.cpp')
-rw-r--r--opengl/libagl/primitives.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opengl/libagl/primitives.cpp b/opengl/libagl/primitives.cpp
index 57a798deb3..d3b19e8e6d 100644
--- a/opengl/libagl/primitives.cpp
+++ b/opengl/libagl/primitives.cpp
@@ -241,6 +241,7 @@ void compute_iterators_t::initTriangle(
m_dx20 = v0->window.x - v2->window.x;
m_dy02 = v2->window.y - v0->window.y;
m_area = m_dx01*m_dy02 + (-m_dy10)*m_dx20;
+ (void)m_reserved; // suppress unused warning
}
void compute_iterators_t::initLine(