aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_glview.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-12-18 13:01:34 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2018-12-18 13:08:01 +0100
commit8a617fda979d1522a880f3e57d2e1adfc9f20814 (patch)
tree558ede3a2848bf783e9e57c9429fcaf0dd62ee81 /src/bin/elementary/test_glview.c
parentevas vg: fix indentation. (diff)
downloadefl-8a617fda979d1522a880f3e57d2e1adfc9f20814.tar.gz
silence most left over compiler warnings
Summary: silence -Wshadow -Wunused-variable -Wunused-parameter Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7473
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_glview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_glview.c b/src/bin/elementary/test_glview.c
index 6a133e9fd0..8df1fddc8d 100644
--- a/src/bin/elementary/test_glview.c
+++ b/src/bin/elementary/test_glview.c
@@ -249,7 +249,7 @@ draw_gear(GLData *gld, Gear *gear, GLfloat *m,
gl->glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE,
6 * sizeof(GLfloat), NULL);
gl->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE,
- 6 * sizeof(GLfloat), (GLfloat *) 0 + 3);
+ 6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat *)));
gl->glEnableVertexAttribArray(0);
gl->glEnableVertexAttribArray(1);
gl->glDrawArrays(GL_TRIANGLE_STRIP, 0, gear->count);