summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-02-26 14:16:58 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-02-26 14:16:58 -0500
commitf7472f066ff573d31eadedabfc5eb5f6710f525d (patch)
treeec5003b397c32a34e860e18dfac77dfd84677cb4
parent1c4c43ceb53a951299d92639a4bb928b2ca536e3 (diff)
examples/efl_ui_list: Mark unused parameters with EINA_UNUSED
-rw-r--r--src/examples/elementary/efl_ui_list_example_1.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/elementary/efl_ui_list_example_1.c b/src/examples/elementary/efl_ui_list_example_1.c
index b52cc0e9ed..be47aa0fc9 100644
--- a/src/examples/elementary/efl_ui_list_example_1.c
+++ b/src/examples/elementary/efl_ui_list_example_1.c
@@ -24,7 +24,7 @@ List_Scroll_Data priv_d;
24 24
25 25
26static void 26static void
27_list_selected(void *data, const Efl_Event *ev) 27_list_selected(void *data EINA_UNUSED, const Efl_Event *ev)
28{ 28{
29 Eo *list = ev->object; 29 Eo *list = ev->object;
30 Eo *item = ev->info, *tmp; 30 Eo *item = ev->info, *tmp;
@@ -39,28 +39,28 @@ _list_selected(void *data, const Efl_Event *ev)
39} 39}
40 40
41static void 41static void
42_list_unselected(void *data, const Efl_Event *ev) 42_list_unselected(void *data EINA_UNUSED, const Efl_Event *ev)
43{ 43{
44 Eo *item = ev->info; 44 Eo *item = ev->info;
45 printf("list item [%p : %d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_item_selected_get(item)? "selected" : "unselected")); 45 printf("list item [%p : %d] is %s\n", item, efl_ui_item_index_get(item), (efl_ui_item_selected_get(item)? "selected" : "unselected"));
46} 46}
47 47
48static void 48static void
49_list_pressed(void *data, const Efl_Event *ev) 49_list_pressed(void *data EINA_UNUSED, const Efl_Event *ev)
50{ 50{
51 Eo *item = ev->info; 51 Eo *item = ev->info;
52 printf("list item [%p : %d] is pressed\n", item, efl_ui_item_index_get(item)); 52 printf("list item [%p : %d] is pressed\n", item, efl_ui_item_index_get(item));
53} 53}
54 54
55static void 55static void
56_list_unpressed(void *data, const Efl_Event *ev) 56_list_unpressed(void *data EINA_UNUSED, const Efl_Event *ev)
57{ 57{
58 Eo *item = ev->info; 58 Eo *item = ev->info;
59 printf("list item [%p : %d] is unpressed\n", item, efl_ui_item_index_get(item)); 59 printf("list item [%p : %d] is unpressed\n", item, efl_ui_item_index_get(item));
60} 60}
61 61
62static void 62static void
63_list_longpressed(void *data, const Efl_Event *ev) 63_list_longpressed(void *data EINA_UNUSED, const Efl_Event *ev)
64{ 64{
65 Eo *item = ev->info; 65 Eo *item = ev->info;
66 printf("list item [%p : %d] is longpressed\n", item, efl_ui_item_index_get(item)); 66 printf("list item [%p : %d] is longpressed\n", item, efl_ui_item_index_get(item));
@@ -74,13 +74,13 @@ _select_radio_changed(void *data, const Efl_Event *ev)
74} 74}
75 75
76static void 76static void
77_anim_radio_changed(void *data, const Efl_Event *ev) 77_anim_radio_changed(void *data EINA_UNUSED, const Efl_Event *ev)
78{ 78{
79 priv_d.anim = efl_ui_radio_state_value_get(ev->object); 79 priv_d.anim = efl_ui_radio_state_value_get(ev->object);
80} 80}
81 81
82static void 82static void
83_scrl_btn_clicked(void *data, const Efl_Event *ev) 83_scrl_btn_clicked(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
84{ 84{
85 Efl_Ui_List_Item *item = efl_ui_list_last_selected_item_get(priv_d.list); 85 Efl_Ui_List_Item *item = efl_ui_list_last_selected_item_get(priv_d.list);
86 printf("show [%d:%p] [%d]\n", efl_ui_item_index_get(item), item, priv_d.anim); 86 printf("show [%d:%p] [%d]\n", efl_ui_item_index_get(item), item, priv_d.anim);
@@ -88,7 +88,7 @@ _scrl_btn_clicked(void *data, const Efl_Event *ev)
88} 88}
89 89
90static void 90static void
91_scrl_align_btn_clicked(void *data, const Efl_Event *ev) 91_scrl_align_btn_clicked(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
92{ 92{
93 Efl_Ui_List_Item *item = efl_ui_list_last_selected_item_get(priv_d.list); 93 Efl_Ui_List_Item *item = efl_ui_list_last_selected_item_get(priv_d.list);
94 double align = efl_ui_range_value_get(priv_d.slider); 94 double align = efl_ui_range_value_get(priv_d.slider);
@@ -97,7 +97,7 @@ _scrl_align_btn_clicked(void *data, const Efl_Event *ev)
97} 97}
98 98
99EAPI_MAIN int 99EAPI_MAIN int
100elm_main(int argc, char **argv) 100elm_main(int argc EINA_UNUSED, char **argv)
101{ 101{
102 Eo *win, *list; 102 Eo *win, *list;
103 Eo *wbox, *ibox, *bbox, *rbox; 103 Eo *wbox, *ibox, *bbox, *rbox;