summaryrefslogtreecommitdiff
path: root/src/examples/elementary/diskselector_example_02.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/diskselector_example_02.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/diskselector_example_02.c')
-rw-r--r--src/examples/elementary/diskselector_example_02.c36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/examples/elementary/diskselector_example_02.c b/src/examples/elementary/diskselector_example_02.c
index ef1a8f6cda..64272aac62 100644
--- a/src/examples/elementary/diskselector_example_02.c
+++ b/src/examples/elementary/diskselector_example_02.c
@@ -22,7 +22,7 @@ _ds_selected_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
22} 22}
23 23
24static void 24static void
25_add_cb(void *data, Evas_Object *obj, void *event_info) 25_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
26{ 26{
27 Elm_Object_Item *ds_it; 27 Elm_Object_Item *ds_it;
28 Evas_Object *ds = data; 28 Evas_Object *ds = data;
@@ -34,7 +34,8 @@ _add_cb(void *data, Evas_Object *obj, void *event_info)
34} 34}
35 35
36static void 36static void
37_add_ic_cb(void *data, Evas_Object *obj, void *event_info) 37_add_ic_cb(void *data, Evas_Object *obj EINA_UNUSED,
38 void *event_info EINA_UNUSED)
38{ 39{
39 Elm_Object_Item *ds_it; 40 Elm_Object_Item *ds_it;
40 Evas_Object *ic, *ds = data; 41 Evas_Object *ic, *ds = data;
@@ -49,14 +50,15 @@ _add_ic_cb(void *data, Evas_Object *obj, void *event_info)
49} 50}
50 51
51static void 52static void
52_sel_cb(void *data, Evas_Object *obj, void *event_info) 53_sel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
53{ 54{
54 Elm_Object_Item *ds_it = event_info; 55 Elm_Object_Item *ds_it = event_info;
55 printf("Selected label: %s\n", elm_object_item_text_get(ds_it)); 56 printf("Selected label: %s\n", elm_object_item_text_get(ds_it));
56} 57}
57 58
58static void 59static void
59_add_func_cb(void *data, Evas_Object *obj, void *event_info) 60_add_func_cb(void *data, Evas_Object *obj EINA_UNUSED,
61 void *event_info EINA_UNUSED)
60{ 62{
61 Elm_Object_Item *ds_it; 63 Elm_Object_Item *ds_it;
62 Evas_Object *ds = data; 64 Evas_Object *ds = data;
@@ -68,7 +70,7 @@ _add_func_cb(void *data, Evas_Object *obj, void *event_info)
68} 70}
69 71
70static void 72static void
71_sel_data_cb(void *data, Evas_Object *obj, void *event_info) 73_sel_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
72{ 74{
73 char *content = data; 75 char *content = data;
74 Elm_Object_Item *ds_it = event_info; 76 Elm_Object_Item *ds_it = event_info;
@@ -77,13 +79,15 @@ _sel_data_cb(void *data, Evas_Object *obj, void *event_info)
77} 79}
78 80
79static void 81static void
80_free_data(void *data, Evas_Object *obj, void *event_info) 82_free_data(void *data, Evas_Object *obj EINA_UNUSED,
83 void *event_info EINA_UNUSED)
81{ 84{
82 free(data); 85 free(data);
83} 86}
84 87
85static void 88static void
86_add_data_cb(void *data, Evas_Object *obj, void *event_info) 89_add_data_cb(void *data, Evas_Object *obj EINA_UNUSED,
90 void *event_info EINA_UNUSED)
87{ 91{
88 Elm_Object_Item *ds_it; 92 Elm_Object_Item *ds_it;
89 Evas_Object *ds = data; 93 Evas_Object *ds = data;
@@ -102,7 +106,7 @@ _add_data_cb(void *data, Evas_Object *obj, void *event_info)
102} 106}
103 107
104static void 108static void
105_del_cb(void *data, Evas_Object *obj, void *event_info) 109_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
106{ 110{
107 Elm_Object_Item *selected_ds_it; 111 Elm_Object_Item *selected_ds_it;
108 Evas_Object *ds = data; 112 Evas_Object *ds = data;
@@ -112,7 +116,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info)
112} 116}
113 117
114static void 118static void
115_unselect_cb(void *data, Evas_Object *obj, void *event_info) 119_unselect_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
116{ 120{
117 Elm_Object_Item *selected_ds_it; 121 Elm_Object_Item *selected_ds_it;
118 Evas_Object *ds = data; 122 Evas_Object *ds = data;
@@ -122,7 +126,7 @@ _unselect_cb(void *data, Evas_Object *obj, void *event_info)
122} 126}
123 127
124static void 128static void
125_print_cb(void *data, Evas_Object *obj, void *event_info) 129_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
126{ 130{
127 const Eina_List *l, *items; 131 const Eina_List *l, *items;
128 Elm_Object_Item *ds_it; 132 Elm_Object_Item *ds_it;
@@ -134,14 +138,14 @@ _print_cb(void *data, Evas_Object *obj, void *event_info)
134} 138}
135 139
136static void 140static void
137_clear_cb(void *data, Evas_Object *obj, void *event_info) 141_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
138{ 142{
139 Evas_Object *ds = data; 143 Evas_Object *ds = data;
140 elm_diskselector_clear(ds); 144 elm_diskselector_clear(ds);
141} 145}
142 146
143static void 147static void
144_select_first_cb(void *data, Evas_Object *obj, void *event_info) 148_select_first_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
145{ 149{
146 Elm_Object_Item *first_ds_it; 150 Elm_Object_Item *first_ds_it;
147 Evas_Object *ds = data; 151 Evas_Object *ds = data;
@@ -152,7 +156,7 @@ _select_first_cb(void *data, Evas_Object *obj, void *event_info)
152} 156}
153 157
154static void 158static void
155_select_last_cb(void *data, Evas_Object *obj, void *event_info) 159_select_last_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
156{ 160{
157 Elm_Object_Item *last_ds_it; 161 Elm_Object_Item *last_ds_it;
158 Evas_Object *ds = data; 162 Evas_Object *ds = data;
@@ -163,7 +167,7 @@ _select_last_cb(void *data, Evas_Object *obj, void *event_info)
163} 167}
164 168
165static void 169static void
166_select_next_cb(void *data, Evas_Object *obj, void *event_info) 170_select_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
167{ 171{
168 Elm_Object_Item *selected_ds_it, *next_ds_it; 172 Elm_Object_Item *selected_ds_it, *next_ds_it;
169 Evas_Object *ds = data; 173 Evas_Object *ds = data;
@@ -177,7 +181,7 @@ _select_next_cb(void *data, Evas_Object *obj, void *event_info)
177} 181}
178 182
179static void 183static void
180_select_prev_cb(void *data, Evas_Object *obj, void *event_info) 184_select_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
181{ 185{
182 Elm_Object_Item *selected_ds_it, *prev_ds_it; 186 Elm_Object_Item *selected_ds_it, *prev_ds_it;
183 Evas_Object *ds = data; 187 Evas_Object *ds = data;
@@ -191,7 +195,7 @@ _select_prev_cb(void *data, Evas_Object *obj, void *event_info)
191} 195}
192 196
193EAPI_MAIN int 197EAPI_MAIN int
194elm_main(int argc, char **argv) 198elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
195{ 199{
196 Evas_Object *win, *bx, *hbx, *ds, *bt; 200 Evas_Object *win, *bx, *hbx, *ds, *bt;
197 201