examples: eina: fix warnings in newly build examples

Summary:
These examples ahve been in tree but not build for a long time. After
enabled them in the last commit these warnings popped up.
Depends on D6884

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6885
This commit is contained in:
Stefan Schmidt 2018-08-21 14:27:36 -04:00 committed by Mike Blumenkrantz
parent 0834e80796
commit b493865e4f
2 changed files with 5 additions and 9 deletions

View File

@ -7,14 +7,14 @@
static Eina_Bool
_xml_attribute_parse_cb(void *data, const char *key, const char *value)
_xml_attribute_parse_cb(void *data EINA_UNUSED, const char *key, const char *value)
{
printf("attributes, key = %s, value = %s\n", key, value);
return EINA_TRUE;
}
static Eina_Bool
_xml_tag_parse_cb(void *data, Eina_Simple_XML_Type type, const char *content,
_xml_tag_parse_cb(void *data EINA_UNUSED, Eina_Simple_XML_Type type, const char *content,
unsigned offset EINA_UNUSED, unsigned int length)
{
if (length == 0) return EINA_FALSE;

View File

@ -74,7 +74,7 @@ static const char commands[] = \
static Evas_Object *
add_text(const char *text, int x, int y, int w)
add_text(const char *text, int x, int y, int w EINA_UNUSED)
{
Evas_Object *o = evas_object_text_add(evas);
evas_object_color_set(o, 0, 0, 0, 255);
@ -214,13 +214,12 @@ void rect_update()
}
static void
_on_key_down(void *data,
_on_key_down(void *data EINA_UNUSED,
Evas *evas EINA_UNUSED,
Evas_Object *o EINA_UNUSED,
void *einfo)
{
Evas_Event_Key_Down *ev;
int x,y;
ev = (Evas_Event_Key_Down *)einfo;
@ -277,13 +276,10 @@ _on_key_down(void *data,
}
int
main(int argc, char *argv[])
main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
{
Ecore_Evas *ee;
Evas_Object *o;
int i;
Eina_Rectangle *rect;
Eina_Iterator *itr;
printf("Usage.\nCommands:%s", commands);