summaryrefslogtreecommitdiff
path: root/src/examples/elementary/hoversel_example_01.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 15:33:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:44:57 +0900
commitbcf3ce84289ad4c91e89d6f5c3c9167af60036f3 (patch)
treed22ab98afccd2f5570aec74fd7957547c2011025 /src/examples/elementary/hoversel_example_01.c
parenta71b770bbc848bff2231bac1e75bf2a85885aca5 (diff)
examples: Fix most trivial warnings
This fixes all warnings for "make examples" for: -Wunused-parameter -Wshadow -Wformat-security -Wenum-conversion Some remaining warnings include: -Wdeprecated-delcarations
Diffstat (limited to 'src/examples/elementary/hoversel_example_01.c')
-rw-r--r--src/examples/elementary/hoversel_example_01.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/elementary/hoversel_example_01.c b/src/examples/elementary/hoversel_example_01.c
index 2c6f70a8f5..289996cf24 100644
--- a/src/examples/elementary/hoversel_example_01.c
+++ b/src/examples/elementary/hoversel_example_01.c
@@ -8,14 +8,14 @@ static void _free(void *data, Evas_Object *obj, void *event_info);
8static void _add_item(void *data, Evas_Object *obj, void *event_info); 8static void _add_item(void *data, Evas_Object *obj, void *event_info);
9 9
10static void 10static void
11_clear_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) 11_clear_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
12{ 12{
13 if (!data) return; 13 if (!data) return;
14 elm_hoversel_clear((Evas_Object *)data); 14 elm_hoversel_clear((Evas_Object *)data);
15} 15}
16 16
17static void 17static void
18_reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) 18_reverse_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
19{ 19{
20 if (!data) return; 20 if (!data) return;
21 elm_object_mirrored_set(data, !elm_object_mirrored_get (data)); 21 elm_object_mirrored_set(data, !elm_object_mirrored_get (data));
@@ -25,7 +25,7 @@ _reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
25 25
26Eina_Bool is_eng = EINA_TRUE; 26Eina_Bool is_eng = EINA_TRUE;
27static void 27static void
28_arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) 28_arabic_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
29{ 29{
30 if (!data) return; 30 if (!data) return;
31 is_eng = !is_eng; 31 is_eng = !is_eng;
@@ -35,7 +35,7 @@ _arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
35} 35}
36 36
37EAPI_MAIN int 37EAPI_MAIN int
38elm_main(int argc, char **argv) 38elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
39{ 39{
40 Evas_Object *win, *rect, *hoversel, *btn = NULL; 40 Evas_Object *win, *rect, *hoversel, *btn = NULL;
41 41
@@ -94,7 +94,7 @@ elm_main(int argc, char **argv)
94ELM_MAIN() 94ELM_MAIN()
95 95
96static void 96static void
97_print_items(void *data, Evas_Object *obj, void *event_info) 97_print_items(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
98{ 98{
99 const Eina_List *items = elm_hoversel_items_get(obj); 99 const Eina_List *items = elm_hoversel_items_get(obj);
100 const Eina_List *l; 100 const Eina_List *l;
@@ -105,7 +105,7 @@ _print_items(void *data, Evas_Object *obj, void *event_info)
105} 105}
106 106
107static void 107static void
108_add_item(void *data, Evas_Object *obj, void *event_info) 108_add_item(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
109{ 109{
110 static int num = 0; 110 static int num = 0;
111 char *str = malloc(sizeof(char) * 11); 111 char *str = malloc(sizeof(char) * 11);
@@ -122,7 +122,7 @@ _add_item(void *data, Evas_Object *obj, void *event_info)
122} 122}
123 123
124static void 124static void
125_free(void *data, Evas_Object *obj, void *event_info) 125_free(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
126{ 126{
127 free(data); 127 free(data);
128} 128}