summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-02-26 14:35:47 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-02-26 14:35:47 -0500
commit42fe36efa57afbd29b3fd55571de085ede7bbbb3 (patch)
tree5238ff3097455fb7874bd2719e132669192212e0
parent92d16b1c2281712be7d8fafe7aaf25992a7cdd1d (diff)
examples/performance: Mark unused parameters with EINA_UNUSED
-rw-r--r--src/examples/elementary/performance/performance.c57
1 files changed, 28 insertions, 29 deletions
diff --git a/src/examples/elementary/performance/performance.c b/src/examples/elementary/performance/performance.c
index 0ed4c5f..74c8f84 100644
--- a/src/examples/elementary/performance/performance.c
+++ b/src/examples/elementary/performance/performance.c
@@ -70,7 +70,7 @@ void _value_int_to_char(char *buf, int value, const char *description)
70} 70}
71 71
72static Eina_Bool 72static Eina_Bool
73_timer_update(void *data) 73_timer_update(void *data EINA_UNUSED)
74{ 74{
75 printf(" frame rate = %f fps\n", fps_frames / 10.0); 75 printf(" frame rate = %f fps\n", fps_frames / 10.0);
76 fps_frames = 0; 76 fps_frames = 0;
@@ -165,19 +165,19 @@ _on_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
165 } 165 }
166} 166}
167static void 167static void
168_btnstart_cb(void *data, Evas_Object *obj, void *event_info) 168_btnstart_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
169{ 169{
170 globalGraphical.change_scene_setup(); 170 globalGraphical.change_scene_setup();
171} 171}
172 172
173static void 173static void
174_btnexit_cb(void *data, Evas_Object *obj, void *event_info) 174_btnexit_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
175{ 175{
176 elm_exit(); 176 elm_exit();
177} 177}
178 178
179static void 179static void
180_btnstop_cb(void *data, Evas_Object *obj, void *event_info) 180_btnstop_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
181{ 181{
182 const char *status = NULL; 182 const char *status = NULL;
183 status = elm_object_text_get(obj); 183 status = elm_object_text_get(obj);
@@ -193,7 +193,7 @@ _btnstop_cb(void *data, Evas_Object *obj, void *event_info)
193 } 193 }
194} 194}
195static void 195static void
196_node_orientation_change_cb(void *data, Evas_Object *obj, void *event_info) 196_node_orientation_change_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
197{ 197{
198 Elm_Object_Item *it; 198 Elm_Object_Item *it;
199 Eina_List *l; 199 Eina_List *l;
@@ -211,7 +211,7 @@ _node_orientation_change_cb(void *data, Evas_Object *obj, void *event_info)
211 } 211 }
212} 212}
213static void 213static void
214_node_position_change_cb(void *data, Evas_Object *obj, void *event_info) 214_node_position_change_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
215{ 215{
216 Elm_Object_Item *it; 216 Elm_Object_Item *it;
217 Eina_List *l; 217 Eina_List *l;
@@ -229,7 +229,7 @@ _node_position_change_cb(void *data, Evas_Object *obj, void *event_info)
229 } 229 }
230} 230}
231static void 231static void
232_node_scale_change_cb(void *data, Evas_Object *obj, void *event_info) 232_node_scale_change_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
233{ 233{
234 Elm_Object_Item *it; 234 Elm_Object_Item *it;
235 Eina_List *l; 235 Eina_List *l;
@@ -247,7 +247,7 @@ _node_scale_change_cb(void *data, Evas_Object *obj, void *event_info)
247 } 247 }
248} 248}
249static void 249static void
250_countdec10_cb(void *data, Evas_Object *obj, void *event_info) 250_countdec10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
251{ 251{
252 char buf[CONVERT]; 252 char buf[CONVERT];
253 int tmp; 253 int tmp;
@@ -262,7 +262,7 @@ _countdec10_cb(void *data, Evas_Object *obj, void *event_info)
262} 262}
263 263
264static void 264static void
265_countdec_cb(void *data, Evas_Object *obj, void *event_info) 265_countdec_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
266{ 266{
267 char buf[CONVERT]; 267 char buf[CONVERT];
268 int tmp; 268 int tmp;
@@ -275,7 +275,7 @@ _countdec_cb(void *data, Evas_Object *obj, void *event_info)
275} 275}
276 276
277static void 277static void
278_countinc_cb(void *data, Evas_Object *obj, void *event_info) 278_countinc_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
279{ 279{
280 char buf[CONVERT]; 280 char buf[CONVERT];
281 281
@@ -286,7 +286,7 @@ _countinc_cb(void *data, Evas_Object *obj, void *event_info)
286} 286}
287 287
288static void 288static void
289_countinc10_cb(void *data, Evas_Object *obj, void *event_info) 289_countinc10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
290{ 290{
291 char buf[CONVERT]; 291 char buf[CONVERT];
292 292
@@ -297,7 +297,7 @@ _countinc10_cb(void *data, Evas_Object *obj, void *event_info)
297} 297}
298 298
299static void 299static void
300_speeddec10_cb(void *data, Evas_Object *obj, void *event_info) 300_speeddec10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
301{ 301{
302 char buf[CONVERT]; 302 char buf[CONVERT];
303 303
@@ -309,7 +309,7 @@ _speeddec10_cb(void *data, Evas_Object *obj, void *event_info)
309} 309}
310 310
311static void 311static void
312_speeddec_cb(void *data, Evas_Object *obj, void *event_info) 312_speeddec_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
313{ 313{
314 char buf[CONVERT]; 314 char buf[CONVERT];
315 315
@@ -321,7 +321,7 @@ _speeddec_cb(void *data, Evas_Object *obj, void *event_info)
321} 321}
322 322
323static void 323static void
324_speedinc_cb(void *data, Evas_Object *obj, void *event_info) 324_speedinc_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
325{ 325{
326 char buf[CONVERT]; 326 char buf[CONVERT];
327 327
@@ -332,7 +332,7 @@ _speedinc_cb(void *data, Evas_Object *obj, void *event_info)
332} 332}
333 333
334static void 334static void
335_speedinc10_cb(void *data, Evas_Object *obj, void *event_info) 335_speedinc10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
336{ 336{
337 char buf[CONVERT]; 337 char buf[CONVERT];
338 338
@@ -343,7 +343,7 @@ _speedinc10_cb(void *data, Evas_Object *obj, void *event_info)
343} 343}
344 344
345static void 345static void
346_precisiondec10_cb(void *data, Evas_Object *obj, void *event_info) 346_precisiondec10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
347{ 347{
348 char buf[CONVERT]; 348 char buf[CONVERT];
349 349
@@ -355,7 +355,7 @@ _precisiondec10_cb(void *data, Evas_Object *obj, void *event_info)
355} 355}
356 356
357static void 357static void
358_precisiondec_cb(void *data, Evas_Object *obj, void *event_info) 358_precisiondec_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
359{ 359{
360 char buf[CONVERT]; 360 char buf[CONVERT];
361 361
@@ -367,7 +367,7 @@ _precisiondec_cb(void *data, Evas_Object *obj, void *event_info)
367} 367}
368 368
369static void 369static void
370_precisioninc_cb(void *data, Evas_Object *obj, void *event_info) 370_precisioninc_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
371{ 371{
372 char buf[CONVERT]; 372 char buf[CONVERT];
373 373
@@ -378,7 +378,7 @@ _precisioninc_cb(void *data, Evas_Object *obj, void *event_info)
378} 378}
379 379
380static void 380static void
381_precisioninc10_cb(void *data, Evas_Object *obj, void *event_info) 381_precisioninc10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
382{ 382{
383 char buf[CONVERT]; 383 char buf[CONVERT];
384 384
@@ -386,11 +386,10 @@ _precisioninc10_cb(void *data, Evas_Object *obj, void *event_info)
386 386
387 _value_int_to_char(buf, globalGraphical.precision, "precision:"); 387 _value_int_to_char(buf, globalGraphical.precision, "precision:");
388 elm_object_text_set((Evas_Object*)data, buf); 388 elm_object_text_set((Evas_Object*)data, buf);
389
390} 389}
391 390
392static void 391static void
393_angledec10_cb(void *data, Evas_Object *obj, void *event_info) 392_angledec10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
394{ 393{
395 char buf[CONVERT]; 394 char buf[CONVERT];
396 395
@@ -402,7 +401,7 @@ _angledec10_cb(void *data, Evas_Object *obj, void *event_info)
402} 401}
403 402
404static void 403static void
405_angledec_cb(void *data, Evas_Object *obj, void *event_info) 404_angledec_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
406{ 405{
407 char buf[CONVERT]; 406 char buf[CONVERT];
408 407
@@ -414,7 +413,7 @@ _angledec_cb(void *data, Evas_Object *obj, void *event_info)
414} 413}
415 414
416static void 415static void
417_angleinc_cb(void *data, Evas_Object *obj, void *event_info) 416_angleinc_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
418{ 417{
419 char buf[CONVERT]; 418 char buf[CONVERT];
420 419
@@ -425,7 +424,7 @@ _angleinc_cb(void *data, Evas_Object *obj, void *event_info)
425} 424}
426 425
427static void 426static void
428_angleinc10_cb(void *data, Evas_Object *obj, void *event_info) 427_angleinc10_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
429{ 428{
430 char buf[CONVERT]; 429 char buf[CONVERT];
431 430
@@ -437,7 +436,7 @@ _angleinc10_cb(void *data, Evas_Object *obj, void *event_info)
437} 436}
438 437
439static void 438static void
440_shadow_enable(void *data, Evas_Object *obj, void *event_info) 439_shadow_enable(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
441{ 440{
442 if (elm_check_state_get(obj)) 441 if (elm_check_state_get(obj))
443 globalGraphical.flags.shadow_enable = EINA_TRUE; 442 globalGraphical.flags.shadow_enable = EINA_TRUE;
@@ -446,7 +445,7 @@ _shadow_enable(void *data, Evas_Object *obj, void *event_info)
446} 445}
447 446
448static void 447static void
449_colorpick_enable(void *data, Evas_Object *obj, void *event_info) 448_colorpick_enable(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
450{ 449{
451 if (elm_check_state_get(obj)) 450 if (elm_check_state_get(obj))
452 globalGraphical.flags.colorpick_enable = EINA_TRUE; 451 globalGraphical.flags.colorpick_enable = EINA_TRUE;
@@ -455,7 +454,7 @@ _colorpick_enable(void *data, Evas_Object *obj, void *event_info)
455} 454}
456 455
457static void 456static void
458_fog_enable(void *data, Evas_Object *obj, void *event_info) 457_fog_enable(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
459{ 458{
460 if (elm_check_state_get(obj)) 459 if (elm_check_state_get(obj))
461 globalGraphical.flags.fog_enable = EINA_TRUE; 460 globalGraphical.flags.fog_enable = EINA_TRUE;
@@ -464,7 +463,7 @@ _fog_enable(void *data, Evas_Object *obj, void *event_info)
464} 463}
465 464
466static void 465static void
467_blend_enable(void *data, Evas_Object *obj, void *event_info) 466_blend_enable(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
468{ 467{
469 if (elm_check_state_get(obj)) 468 if (elm_check_state_get(obj))
470 globalGraphical.flags.blend_enable = EINA_TRUE; 469 globalGraphical.flags.blend_enable = EINA_TRUE;
@@ -473,7 +472,7 @@ _blend_enable(void *data, Evas_Object *obj, void *event_info)
473} 472}
474 473
475static void 474static void
476_cb_fps_enable(void *data, Evas_Object *obj, void *event_info) 475_cb_fps_enable(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
477{ 476{
478 if (elm_check_state_get(obj)) 477 if (elm_check_state_get(obj))
479 { 478 {