summaryrefslogtreecommitdiff
path: root/src/examples/evas
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/evas
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/evas')
-rw-r--r--src/examples/evas/evas-object-manipulation-eo.c2
-rw-r--r--src/examples/evas/evas-smart-interface.c4
-rw-r--r--src/examples/evas/evas-stacking.c4
-rw-r--r--src/examples/evas/evas-textblock-obstacles.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c
index 77d4df9..258ca41 100644
--- a/src/examples/evas/evas-object-manipulation-eo.c
+++ b/src/examples/evas/evas-object-manipulation-eo.c
@@ -225,7 +225,7 @@ main(void)
225 else 225 else
226 { 226 {
227 efl_image_border_set(d.clipper_border, 3, 3, 3, 3); 227 efl_image_border_set(d.clipper_border, 3, 3, 3, 3);
228 efl_image_border_center_fill_set(d.clipper_border, EVAS_BORDER_FILL_NONE); 228 efl_image_border_center_fill_set(d.clipper_border, EFL_GFX_BORDER_FILL_MODE_NONE);
229 efl_gfx_position_set(d.clipper_border, (WIDTH / 4) -3, (HEIGHT / 4) - 3); 229 efl_gfx_position_set(d.clipper_border, (WIDTH / 4) -3, (HEIGHT / 4) - 3);
230 efl_gfx_size_set(d.clipper_border, (WIDTH / 2) + 6, (HEIGHT / 2) + 6); 230 efl_gfx_size_set(d.clipper_border, (WIDTH / 2) + 6, (HEIGHT / 2) + 6);
231 efl_gfx_visible_set(d.clipper_border, EINA_TRUE); 231 efl_gfx_visible_set(d.clipper_border, EINA_TRUE);
diff --git a/src/examples/evas/evas-smart-interface.c b/src/examples/evas/evas-smart-interface.c
index 26f8082c..343842f 100644
--- a/src/examples/evas/evas-smart-interface.c
+++ b/src/examples/evas/evas-smart-interface.c
@@ -499,7 +499,7 @@ _on_keydown(void *data EINA_UNUSED,
499 499
500 if (strcmp(ev->key, "h") == 0) /* print help */ 500 if (strcmp(ev->key, "h") == 0) /* print help */
501 { 501 {
502 printf(commands); 502 printf("%s\n", commands);
503 return; 503 return;
504 } 504 }
505 505
@@ -771,7 +771,7 @@ main(void)
771 iface->example_func(d.smt); 771 iface->example_func(d.smt);
772 } 772 }
773 773
774 printf(commands); 774 printf("%s\n", commands);
775 ecore_main_loop_begin(); 775 ecore_main_loop_begin();
776 776
777 ecore_evas_free(d.ee); 777 ecore_evas_free(d.ee);
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 148393f..444e2b2 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -93,7 +93,7 @@ _on_keydown(void *data EINA_UNUSED,
93 93
94 if (strcmp(ev->key, "h") == 0) /* print help */ 94 if (strcmp(ev->key, "h") == 0) /* print help */
95 { 95 {
96 printf(commands); 96 printf("%s\n", commands);
97 return; 97 return;
98 } 98 }
99 99
@@ -322,7 +322,7 @@ main(void)
322 evas_object_event_callback_add( 322 evas_object_event_callback_add(
323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL); 323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL);
324 324
325 printf(commands); 325 printf("%s\n", commands);
326 ecore_main_loop_begin(); 326 ecore_main_loop_begin();
327 327
328 ecore_evas_shutdown(); 328 ecore_evas_shutdown();
diff --git a/src/examples/evas/evas-textblock-obstacles.c b/src/examples/evas/evas-textblock-obstacles.c
index 91f5d41..a6df1e6 100644
--- a/src/examples/evas/evas-textblock-obstacles.c
+++ b/src/examples/evas/evas-textblock-obstacles.c
@@ -125,7 +125,7 @@ _on_keydown(void *data EINA_UNUSED,
125 125
126 if (strcmp(ev->key, "h") == 0) /* print help */ 126 if (strcmp(ev->key, "h") == 0) /* print help */
127 { 127 {
128 printf(commands); 128 printf("%s\n", commands);
129 return; 129 return;
130 } 130 }
131 131
@@ -293,7 +293,7 @@ main(void)
293 evas_object_show(d.t_data.obs[0]); 293 evas_object_show(d.t_data.obs[0]);
294 evas_object_show(d.t_data.obs[1]); 294 evas_object_show(d.t_data.obs[1]);
295 295
296 printf(commands); 296 printf("%s\n", commands);
297 ecore_main_loop_begin(); 297 ecore_main_loop_begin();
298 298
299 evas_textblock_style_free(d.st); 299 evas_textblock_style_free(d.st);