summaryrefslogtreecommitdiff
path: root/src/examples/elementary/transit_example_03.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/transit_example_03.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/transit_example_03.c')
-rw-r--r--src/examples/elementary/transit_example_03.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/elementary/transit_example_03.c b/src/examples/elementary/transit_example_03.c
index caca85b257..a183201350 100644
--- a/src/examples/elementary/transit_example_03.c
+++ b/src/examples/elementary/transit_example_03.c
@@ -92,7 +92,7 @@ _checkbox_transition_add(Evas_Object *box, const char *label, Eina_Bool *checked
92} 92}
93 93
94static void 94static void
95_transit_start(void *data, Evas_Object *o, void *event_info) 95_transit_start(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
96{ 96{
97 Elm_Transit *trans = NULL; 97 Elm_Transit *trans = NULL;
98 int i; 98 int i;
@@ -130,14 +130,14 @@ _transit_start(void *data, Evas_Object *o, void *event_info)
130/* callback useful just to know whether we can receive events from the 130/* callback useful just to know whether we can receive events from the
131 * object or not */ 131 * object or not */
132static void 132static void
133_object_clicked(void *data, Evas_Object *o, void *event_info) 133_object_clicked(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
134{ 134{
135 printf("object clicked!\n"); 135 printf("object clicked!\n");
136} 136}
137 137
138/* update our context with the given value for repeat count */ 138/* update our context with the given value for repeat count */
139static void 139static void
140_cb_repeat_changed(void *data, Evas_Object *obj, void *event) 140_cb_repeat_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
141{ 141{
142 int *repeat_cnt = data; 142 int *repeat_cnt = data;
143 143
@@ -146,7 +146,7 @@ _cb_repeat_changed(void *data, Evas_Object *obj, void *event)
146 146
147/* update our context with the given tween mode for the transition */ 147/* update our context with the given tween mode for the transition */
148static void 148static void
149_cb_tween_changed(void *data, Evas_Object *obj, void *event) 149_cb_tween_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
150{ 150{
151 Elm_Transit_Tween_Mode *mode = data; 151 Elm_Transit_Tween_Mode *mode = data;
152 double val = 0.0; 152 double val = 0.0;
@@ -163,7 +163,7 @@ _cb_tween_changed(void *data, Evas_Object *obj, void *event)
163} 163}
164 164
165EAPI_MAIN int 165EAPI_MAIN int
166elm_main(int argc, char **argv) 166elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
167{ 167{
168 Evas_Object *win, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn; 168 Evas_Object *win, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn;
169 Evas_Object *cbox, *dummy, *spinner; 169 Evas_Object *cbox, *dummy, *spinner;