summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-02-18 22:16:48 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-18 22:42:17 +0100
commitd6f2dd4dd07dee11eb4121d950f37a534d43dadb (patch)
tree56a383cd7914899b015cf87e7437a4c844dcbfd5 /src/examples
parent2e2145b5945c94587e5a11502432ea2e8f75d2bd (diff)
evas: remove compilation warning.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/evas/evas-3d-shadows.c10
-rw-r--r--src/examples/evas/shooter/evas-3d-shooter.c4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/examples/evas/evas-3d-shadows.c b/src/examples/evas/evas-3d-shadows.c
index 960186d..ec37f2e 100644
--- a/src/examples/evas/evas-3d-shadows.c
+++ b/src/examples/evas/evas-3d-shadows.c
@@ -59,7 +59,7 @@ typedef struct _Scene_Data
59} Scene_Data; 59} Scene_Data;
60 60
61Eina_Bool 61Eina_Bool
62_cb_clicked(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info) 62_cb_clicked(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
63{ 63{
64 Eina_List *meshes = NULL, *l; 64 Eina_List *meshes = NULL, *l;
65 Evas_3D_Mesh *m; 65 Evas_3D_Mesh *m;
@@ -78,10 +78,11 @@ _cb_clicked(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_i
78 choosed_node = (Evas_3D_Node *)event_info; 78 choosed_node = (Evas_3D_Node *)event_info;
79 } 79 }
80 80
81 return EINA_TRUE;
81} 82}
82 83
83Eina_Bool 84Eina_Bool
84_cb_collision(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info) 85_cb_collision(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
85{ 86{
86 Eina_List *meshes = NULL, *l; 87 Eina_List *meshes = NULL, *l;
87 Evas_3D_Mesh *m; 88 Evas_3D_Mesh *m;
@@ -90,6 +91,8 @@ _cb_collision(void *data, Eo *obj, const Eo_Event_Description *desc, void *event
90 { 91 {
91 eo_do(m, evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_DIFFUSE)); 92 eo_do(m, evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_DIFFUSE));
92 } 93 }
94
95 return EINA_TRUE;
93} 96}
94 97
95static void 98static void
@@ -344,9 +347,8 @@ _scene_setup(Scene_Data *data)
344} 347}
345 348
346static void 349static void
347_on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void *event_info) 350_on_key_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void *event_info)
348{ 351{
349 Scene_Data *scene = (Scene_Data *)data;
350 Evas_Event_Key_Down *ev = event_info; 352 Evas_Event_Key_Down *ev = event_info;
351 if (!strcmp("w", ev->key)) 353 if (!strcmp("w", ev->key))
352 { 354 {
diff --git a/src/examples/evas/shooter/evas-3d-shooter.c b/src/examples/evas/shooter/evas-3d-shooter.c
index 9debe8f..a3e7e45 100644
--- a/src/examples/evas/shooter/evas-3d-shooter.c
+++ b/src/examples/evas/shooter/evas-3d-shooter.c
@@ -303,7 +303,7 @@ _key_down(void *data,
303} 303}
304 304
305static void 305static void
306_key_up(void *data, 306_key_up(void *data EINA_UNUSED,
307 Evas *e EINA_UNUSED, 307 Evas *e EINA_UNUSED,
308 Evas_Object *eo EINA_UNUSED, 308 Evas_Object *eo EINA_UNUSED,
309 void *event_info) 309 void *event_info)
@@ -1151,7 +1151,7 @@ _mesh_setup_grass(Scene_Data *data)
1151} 1151}
1152 1152
1153void 1153void
1154_mesh_setup(Scene_Data *data, float h, float w, float d, float *isource, int index) 1154_mesh_setup(Scene_Data *data, float h EINA_UNUSED, float w EINA_UNUSED, float d EINA_UNUSED, float *isource, int index)
1155{ 1155{
1156 /* Setup mesh. */ 1156 /* Setup mesh. */
1157 1157