aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
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
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 'src/bin/elementary')
-rw-r--r--src/bin/elementary/quicklaunch.c6
-rw-r--r--src/bin/elementary/test_glview.c2
-rw-r--r--src/bin/elementary/test_glview_manygears.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/quicklaunch.c b/src/bin/elementary/quicklaunch.c
index 96bbcda112..3e7598e6c2 100644
--- a/src/bin/elementary/quicklaunch.c
+++ b/src/bin/elementary/quicklaunch.c
@@ -347,10 +347,10 @@ main(int argc, char **argv)
{
int fd;
struct sockaddr_un client;
- socklen_t len;
+ socklen_t slen;
- len = sizeof(struct sockaddr_un);
- fd = accept(sock, (struct sockaddr *)&client, &len);
+ slen = sizeof(struct sockaddr_un);
+ fd = accept(sock, (struct sockaddr *)&client, &slen);
DBG("Accepting connection.");
elm_quicklaunch_sub_init(argc, argv);
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);
diff --git a/src/bin/elementary/test_glview_manygears.c b/src/bin/elementary/test_glview_manygears.c
index 17e05585a9..6161341325 100644
--- a/src/bin/elementary/test_glview_manygears.c
+++ b/src/bin/elementary/test_glview_manygears.c
@@ -461,7 +461,7 @@ draw_gear(GLData *gld, Gear *gear, GLfloat *transform,
// Set up the position of the attributes in the vertex buffer object
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);
+ gl->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat *)));
// Enable the attributes
gl->glEnableVertexAttribArray(0);