aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2018-08-21 14:27:36 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-21 14:27:36 -0400
commitb493865e4fa38d882ae919075f59e10ddc48ca63 (patch)
tree691a0c25acf6fb1f7ca3f51ed613fa59ad56cacc /src/examples
parentexamples: eina: add missing example source files to dist (diff)
downloadefl-b493865e4fa38d882ae919075f59e10ddc48ca63.tar.gz
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 https://phab.enlightenment.org/D6884 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6885
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/eina/eina_simple_xml_parser_02.c4
-rw-r--r--src/examples/eina/eina_tiler_02.c10
2 files changed, 5 insertions, 9 deletions
diff --git a/src/examples/eina/eina_simple_xml_parser_02.c b/src/examples/eina/eina_simple_xml_parser_02.c
index 5c0cf08858..2a95621002 100644
--- a/src/examples/eina/eina_simple_xml_parser_02.c
+++ b/src/examples/eina/eina_simple_xml_parser_02.c
@@ -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;
diff --git a/src/examples/eina/eina_tiler_02.c b/src/examples/eina/eina_tiler_02.c
index fd46477d0e..e4d22f2997 100644
--- a/src/examples/eina/eina_tiler_02.c
+++ b/src/examples/eina/eina_tiler_02.c
@@ -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);