diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-04-20 15:33:59 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-04-20 17:44:57 +0900 |
commit | bcf3ce84289ad4c91e89d6f5c3c9167af60036f3 (patch) | |
tree | d22ab98afccd2f5570aec74fd7957547c2011025 /src/examples | |
parent | a71b770bbc848bff2231bac1e75bf2a85885aca5 (diff) | |
download | efl-bcf3ce84289ad4c91e89d6f5c3c9167af60036f3.tar.gz |
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')
133 files changed, 607 insertions, 599 deletions
diff --git a/src/examples/ecore/efl_net_dialer_simple_example.c b/src/examples/ecore/efl_net_dialer_simple_example.c index 4a1fde5689..35a2fd89d7 100644 --- a/src/examples/ecore/efl_net_dialer_simple_example.c +++ b/src/examples/ecore/efl_net_dialer_simple_example.c @@ -404,8 +404,8 @@ main(int argc, char **argv) if (line_delm_slice.len) { - Eina_Slice s = line_delm_slice; - efl_io_writer_write(dialer, &s, NULL); + Eina_Slice sw = line_delm_slice; + efl_io_writer_write(dialer, &sw, NULL); } } else @@ -426,8 +426,8 @@ main(int argc, char **argv) if (line_delm_slice.len) { - Eina_Slice s = line_delm_slice; - efl_io_writer_write(dialer, &s, NULL); + Eina_Slice sw = line_delm_slice; + efl_io_writer_write(dialer, &sw, NULL); } } } diff --git a/src/examples/eina/eina_hash_08.c b/src/examples/eina/eina_hash_08.c index 70b5d9dfc3..1d0de8ec98 100644 --- a/src/examples/eina/eina_hash_08.c +++ b/src/examples/eina/eina_hash_08.c @@ -36,18 +36,6 @@ _phone_entry_free_cb(void *data) free(data); } -static Eina_Bool -_phone_book_foreach_cb(const Eina_Hash *phone_book EINA_UNUSED, const void *key, - void *data, void *fdata EINA_UNUSED) -{ - const char *name = key; - const char *number = data; - printf("%s: %s\n", name, number); - - // Return EINA_FALSE to stop this callback from being called - return EINA_TRUE; -} - int main(int argc EINA_UNUSED, const char *argv[] EINA_UNUSED) { diff --git a/src/examples/eina/eina_magic_01.c b/src/examples/eina/eina_magic_01.c index ed6b0da269..31c987dc34 100644 --- a/src/examples/eina/eina_magic_01.c +++ b/src/examples/eina/eina_magic_01.c @@ -103,7 +103,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED) print_person(base); print_person((person *)sub); - print_pilot(base); //BAD + print_pilot((pilot *)base); //BAD: fails (C cast prevents GCC warning) print_pilot(sub); eina_shutdown(); diff --git a/src/examples/eina/eina_simple_xml_parser_01.c b/src/examples/eina/eina_simple_xml_parser_01.c index 5c01708a21..de27e0bb18 100644 --- a/src/examples/eina/eina_simple_xml_parser_01.c +++ b/src/examples/eina/eina_simple_xml_parser_01.c @@ -87,16 +87,16 @@ _xml_tag_cb(void *data, Eina_Simple_XML_Type type, const char *content, { if (tag_login == EINA_TRUE) { - snprintf(buffer, sizeof(buffer), content); - strncat(str, "<", 1); - strncat(str, buffer, sizeof(buffer)); - strncat(str, "> ", 2); + eina_strlcpy(buffer, content, sizeof(buffer)); + eina_strlcat(str, "<", 1); + eina_strlcat(str, buffer, sizeof(str)); + eina_strlcat(str, "> ", 2); tag_login = EINA_FALSE; } else if (tag_message == EINA_TRUE) { - snprintf(buffer, sizeof(buffer), content); - strncat(str, buffer, sizeof(buffer)); + eina_strlcpy(buffer, content, sizeof(buffer)); + eina_strlcat(str, buffer, sizeof(str)); tag_message = EINA_FALSE; eina_array_push(array, strdup(str)); } diff --git a/src/examples/eio/efl_io_manager_ls.c b/src/examples/eio/efl_io_manager_ls.c index 6878cfe4e6..ab5acd5af9 100644 --- a/src/examples/eio/efl_io_manager_ls.c +++ b/src/examples/eio/efl_io_manager_ls.c @@ -10,7 +10,7 @@ #include <Eio.h> #include <Ecore.h> -void leave(Efl_Io_Manager *job) +void leave(Efl_Io_Manager *job EINA_UNUSED) { ecore_main_loop_quit(); } diff --git a/src/examples/eio/efl_io_manager_open.c b/src/examples/eio/efl_io_manager_open.c index 739f76fff5..a3c4cacccb 100644 --- a/src/examples/eio/efl_io_manager_open.c +++ b/src/examples/eio/efl_io_manager_open.c @@ -9,7 +9,7 @@ #include <Eio.h> #include <Ecore.h> -void error_cb(void *data, const Efl_Event *ev) +void error_cb(void *data EINA_UNUSED, const Efl_Event *ev) { Efl_Future_Event_Failure *failure = ev->info; const char *msg = eina_error_msg_get(failure->error); diff --git a/src/examples/eio/efl_io_manager_open_multi.c b/src/examples/eio/efl_io_manager_open_multi.c index e56cffa09f..cedb91613d 100644 --- a/src/examples/eio/efl_io_manager_open_multi.c +++ b/src/examples/eio/efl_io_manager_open_multi.c @@ -14,6 +14,7 @@ void error_cb(void *data, const Efl_Event *ev) Efl_Future_Event_Failure *failure = ev->info; const char *msg = eina_error_msg_get(failure->error); Efl_Io_Manager *job = data; + (void) job; EINA_LOG_ERR("error: %s", msg); @@ -23,6 +24,7 @@ void error_cb(void *data, const Efl_Event *ev) void done_closing_cb(void *data, const Efl_Event *ev EINA_UNUSED) { Efl_Io_Manager *job = data; + (void) job; printf("%s closed all files.\n", __FUNCTION__); diff --git a/src/examples/eio/eio_sentry.c b/src/examples/eio/eio_sentry.c index f72782cbfd..342df05ad9 100644 --- a/src/examples/eio/eio_sentry.c +++ b/src/examples/eio/eio_sentry.c @@ -45,7 +45,7 @@ main(int argc, char const *argv[]) if (argc > 1) path = argv[1]; - Ecore_Job *job = ecore_job_add(&monitor_stuff, path); + ecore_job_add(&monitor_stuff, path); ecore_main_loop_begin(); diff --git a/src/examples/elementary/actionslider_example_01.c b/src/examples/elementary/actionslider_example_01.c index d142d965ab..8edeb4fd5b 100644 --- a/src/examples/elementary/actionslider_example_01.c +++ b/src/examples/elementary/actionslider_example_01.c @@ -3,14 +3,14 @@ #include <Elementary.h> -static void _pos_selected_cb(void *data, Evas_Object *obj, void *event_info) +static void _pos_selected_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) { printf("Selection: %s\n", (char *)event_info); printf("Label selected: %s\n", elm_actionslider_selected_label_get(obj)); } static void -_position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info) +_position_change_magnetic_cb(void *data EINA_UNUSED, Evas_Object * obj, void *event_info) { if (!strcmp((char *)event_info, "left")) elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_LEFT); @@ -19,7 +19,7 @@ _position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info) } static void -_magnet_enable_disable_cb(void *data, Evas_Object *obj, void *event_info) +_magnet_enable_disable_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) { if (!strcmp((char *)event_info, "left")) elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_CENTER); @@ -28,7 +28,7 @@ _magnet_enable_disable_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *as; diff --git a/src/examples/elementary/bg_cxx_example_01.cc b/src/examples/elementary/bg_cxx_example_01.cc index f1c35fe9b4..7c9ecf098a 100644 --- a/src/examples/elementary/bg_cxx_example_01.cc +++ b/src/examples/elementary/bg_cxx_example_01.cc @@ -3,7 +3,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/bg_cxx_example_02.cc b/src/examples/elementary/bg_cxx_example_02.cc index 06620238f5..c73f45f795 100644 --- a/src/examples/elementary/bg_cxx_example_02.cc +++ b/src/examples/elementary/bg_cxx_example_02.cc @@ -3,7 +3,7 @@ #include <sstream> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **args EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/bg_example_01.c b/src/examples/elementary/bg_example_01.c index 7377e5d1b4..03d57b00e9 100644 --- a/src/examples/elementary/bg_example_01.c +++ b/src/examples/elementary/bg_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win; diff --git a/src/examples/elementary/bg_example_02.c b/src/examples/elementary/bg_example_02.c index a74fc51a7e..a48f2be908 100644 --- a/src/examples/elementary/bg_example_02.c +++ b/src/examples/elementary/bg_example_02.c @@ -5,7 +5,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bg; char buf[PATH_MAX]; diff --git a/src/examples/elementary/bg_example_03.c b/src/examples/elementary/bg_example_03.c index be44f2576d..5337d3426a 100644 --- a/src/examples/elementary/bg_example_03.c +++ b/src/examples/elementary/bg_example_03.c @@ -5,7 +5,7 @@ #include <Elementary.h> static void -_cb_radio_changed(void *data, Evas_Object *obj, void *event) +_cb_radio_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) { Evas_Object *o_bg = data; @@ -13,7 +13,7 @@ _cb_radio_changed(void *data, Evas_Object *obj, void *event) } static void -_cb_overlay_changed(void *data, Evas_Object *obj, void *event) +_cb_overlay_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) { Evas_Object *o_bg = data; @@ -33,7 +33,7 @@ _cb_overlay_changed(void *data, Evas_Object *obj, void *event) } static void -_cb_color_changed(void *data, Evas_Object *obj, void *event) +_cb_color_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) { Evas_Object *o_bg = data; double val = 0.0; @@ -50,7 +50,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win; Evas_Object *box, *hbox, *o_bg; diff --git a/src/examples/elementary/box_example_02.c b/src/examples/elementary/box_example_02.c index 24c502d2b4..5e086b6b6d 100644 --- a/src/examples/elementary/box_example_02.c +++ b/src/examples/elementary/box_example_02.c @@ -11,7 +11,7 @@ typedef struct } Transitions_Data; static void -_add_cb(void *data, Evas_Object *obj, void *ev) +_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Evas_Object *btn; Eina_List *children; @@ -31,14 +31,14 @@ _add_cb(void *data, Evas_Object *obj, void *ev) } static void -_clear_cb(void *data, Evas_Object *obj, void *ev) +_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Transitions_Data *tdata = data; elm_box_clear(tdata->box); } static void -_unpack_cb(void *data, Evas_Object *obj, void *ev) +_unpack_cb(void *data, Evas_Object *obj, void *ev EINA_UNUSED) { Transitions_Data *tdata = data; elm_box_unpack(tdata->box, obj); @@ -67,7 +67,7 @@ _test_box_transition_change(void *data) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bigbox, *bx, *bt; static Transitions_Data tdata = { diff --git a/src/examples/elementary/bubble_example_01.c b/src/examples/elementary/bubble_example_01.c index ee49b35986..055a8abd69 100644 --- a/src/examples/elementary/bubble_example_01.c +++ b/src/examples/elementary/bubble_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> void -_bla(void *data, Evas_Object *obj, void *event_info) +_bla(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { static unsigned char corner = 0; ++corner; @@ -16,7 +16,7 @@ _bla(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bubble, *label, *icon; diff --git a/src/examples/elementary/button_cxx_example_00.cc b/src/examples/elementary/button_cxx_example_00.cc index 9239f74734..b20ebf492c 100644 --- a/src/examples/elementary/button_cxx_example_00.cc +++ b/src/examples/elementary/button_cxx_example_00.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/button_example_00.c b/src/examples/elementary/button_example_00.c index 633232a915..7ac2df69e7 100644 --- a/src/examples/elementary/button_example_00.c +++ b/src/examples/elementary/button_example_00.c @@ -4,13 +4,14 @@ #include <Elementary.h> static void -on_click(void *data, Evas_Object *obj, void *event_info) +on_click(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { elm_exit(); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win = NULL; Evas_Object *btn = NULL; diff --git a/src/examples/elementary/button_example_01.c b/src/examples/elementary/button_example_01.c index 9f49d566da..e0af7c327d 100644 --- a/src/examples/elementary/button_example_01.c +++ b/src/examples/elementary/button_example_01.c @@ -17,7 +17,8 @@ typedef struct } App_Data; static void -_btn_cursors_release_cb(void *data, Evas_Object *btn, void *ev) +_btn_cursors_release_cb(void *data, Evas_Object *btn EINA_UNUSED, + void *ev EINA_UNUSED) { App_Data *app = data; elm_object_part_content_set(app->mid, "icon", app->icon_still); @@ -25,7 +26,7 @@ _btn_cursors_release_cb(void *data, Evas_Object *btn, void *ev) } static void -_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev) +_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev EINA_UNUSED) { App_Data *app = data; double ax, ay; @@ -69,7 +70,7 @@ _btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev) } static void -_btn_options_cb(void *data, Evas_Object *btn, void *ev) +_btn_options_cb(void *data, Evas_Object *btn, void *ev EINA_UNUSED) { char *ptr; double t; @@ -97,7 +98,7 @@ _btn_options_cb(void *data, Evas_Object *btn, void *ev) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *box2, *btn, *icon; static App_Data data; diff --git a/src/examples/elementary/calendar_cxx_example_01.cc b/src/examples/elementary/calendar_cxx_example_01.cc index b094fc528d..a493a4f44e 100644 --- a/src/examples/elementary/calendar_cxx_example_01.cc +++ b/src/examples/elementary/calendar_cxx_example_01.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/calendar_cxx_example_02.cc b/src/examples/elementary/calendar_cxx_example_02.cc index 02a1edea3e..e776005241 100644 --- a/src/examples/elementary/calendar_cxx_example_02.cc +++ b/src/examples/elementary/calendar_cxx_example_02.cc @@ -15,7 +15,7 @@ _format_month_year(struct tm *format_time) } EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc index cab39f3c3b..7598187713 100644 --- a/src/examples/elementary/calendar_cxx_example_03.cc +++ b/src/examples/elementary/calendar_cxx_example_03.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { Efl_Time min, max; diff --git a/src/examples/elementary/calendar_cxx_example_04.cc b/src/examples/elementary/calendar_cxx_example_04.cc index 6a26778b83..0ed3f5d8f7 100644 --- a/src/examples/elementary/calendar_cxx_example_04.cc +++ b/src/examples/elementary/calendar_cxx_example_04.cc @@ -8,7 +8,7 @@ #define SECS_DAY 86400 EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { struct tm selected_time; time_t current_time; diff --git a/src/examples/elementary/calendar_cxx_example_05.cc b/src/examples/elementary/calendar_cxx_example_05.cc index 0e04d15d8f..7ab12cc180 100644 --- a/src/examples/elementary/calendar_cxx_example_05.cc +++ b/src/examples/elementary/calendar_cxx_example_05.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/calendar_example_01.c b/src/examples/elementary/calendar_example_01.c index 0ae9f3dc85..c933df31c3 100644 --- a/src/examples/elementary/calendar_example_01.c +++ b/src/examples/elementary/calendar_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cal; diff --git a/src/examples/elementary/calendar_example_02.c b/src/examples/elementary/calendar_example_02.c index d469f88364..e54718a7f8 100644 --- a/src/examples/elementary/calendar_example_02.c +++ b/src/examples/elementary/calendar_example_02.c @@ -22,7 +22,7 @@ _format_month_year(struct tm *format_time) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cal; const char *weekdays[] = diff --git a/src/examples/elementary/calendar_example_03.c b/src/examples/elementary/calendar_example_03.c index 1f01f4d7c4..70c13c5f53 100644 --- a/src/examples/elementary/calendar_example_03.c +++ b/src/examples/elementary/calendar_example_03.c @@ -13,7 +13,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cal; diff --git a/src/examples/elementary/calendar_example_04.c b/src/examples/elementary/calendar_example_04.c index e2af9e9f06..f9881b496a 100644 --- a/src/examples/elementary/calendar_example_04.c +++ b/src/examples/elementary/calendar_example_04.c @@ -15,7 +15,7 @@ #define SECS_DAY 86400 EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *cal, *cal2; struct tm selected_time; diff --git a/src/examples/elementary/calendar_example_05.c b/src/examples/elementary/calendar_example_05.c index dad576ecfd..b7caad752d 100644 --- a/src/examples/elementary/calendar_example_05.c +++ b/src/examples/elementary/calendar_example_05.c @@ -12,7 +12,8 @@ #include <Elementary.h> static void -_print_cal_info_cb(void *data, Evas_Object *obj, void *event_info) +_print_cal_info_cb(void *data EINA_UNUSED, Evas_Object *obj, + void *event_info EINA_UNUSED) { int year_min, year_max; Eina_Bool sel_enabled; @@ -37,7 +38,7 @@ _print_cal_info_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cal; diff --git a/src/examples/elementary/calendar_example_06.c b/src/examples/elementary/calendar_example_06.c index 54016be00b..61e46a259c 100644 --- a/src/examples/elementary/calendar_example_06.c +++ b/src/examples/elementary/calendar_example_06.c @@ -13,7 +13,7 @@ #define SECS_DAY 86400 static void -_btn_clear_cb(void *data, Evas_Object *btn, void *ev) +_btn_clear_cb(void *data, Evas_Object *btn EINA_UNUSED, void *ev EINA_UNUSED) { Evas_Object *cal = data; elm_calendar_marks_clear(cal); @@ -21,7 +21,7 @@ _btn_clear_cb(void *data, Evas_Object *btn, void *ev) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bt, *bx, *cal; Elm_Calendar_Mark *mark; diff --git a/src/examples/elementary/check_example_01.c b/src/examples/elementary/check_example_01.c index 9af278663e..ce1cc76261 100644 --- a/src/examples/elementary/check_example_01.c +++ b/src/examples/elementary/check_example_01.c @@ -4,13 +4,13 @@ #include <Elementary.h> static void -_print(void *data, Evas_Object *obj, void *event_info) +_print(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("check %smarked\n", *((Eina_Bool*)data) ? "" : "un"); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cb, *cb2, *icon; Eina_Bool value; diff --git a/src/examples/elementary/clock_cxx_example.cc b/src/examples/elementary/clock_cxx_example.cc index f1e2c3e813..089e415033 100644 --- a/src/examples/elementary/clock_cxx_example.cc +++ b/src/examples/elementary/clock_cxx_example.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/clock_example.c b/src/examples/elementary/clock_example.c index a7a9573283..aa2eb4a28e 100644 --- a/src/examples/elementary/clock_example.c +++ b/src/examples/elementary/clock_example.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *ck; unsigned int digedit; diff --git a/src/examples/elementary/codegen_example.c b/src/examples/elementary/codegen_example.c index cceb42353c..19643762b7 100644 --- a/src/examples/elementary/codegen_example.c +++ b/src/examples/elementary/codegen_example.c @@ -28,7 +28,7 @@ static Eina_Bool _btn_large = EINA_FALSE; static void -_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) +_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED) { Evas_Object *layout = data; @@ -49,7 +49,8 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) } static void -_size_changed_cb(void *data, Evas_Object *layout, const char *emission, const char *source) +_size_changed_cb(void *data EINA_UNUSED, Evas_Object *layout, + const char *emission EINA_UNUSED, const char *source EINA_UNUSED) { Evas_Object *edje; Evas_Coord w, h; @@ -75,7 +76,7 @@ _button_create(Evas_Object *parent, const char *label) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *btn, *layout, *tbl_items[6]; const char *labels[] = {"One", "Two", "Three", "Four", "Five", "Six"}; diff --git a/src/examples/elementary/colorselector_example_01.c b/src/examples/elementary/colorselector_example_01.c index d2532d477f..47fb1c6b2a 100644 --- a/src/examples/elementary/colorselector_example_01.c +++ b/src/examples/elementary/colorselector_example_01.c @@ -8,7 +8,7 @@ static void _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_i static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *cs, *rect, *bx, *fr; @@ -62,7 +62,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_change_color(void *data, Evas_Object *obj, void *event_info) +_change_color(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { int r, g, b, a; elm_colorselector_color_get(obj, &r, &g, &b, &a); @@ -72,7 +72,8 @@ _change_color(void *data, Evas_Object *obj, void *event_info) } static void -_colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info) +_colorpalette_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info) { int r = 0, g = 0, b = 0 ,a = 0; Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; @@ -83,7 +84,8 @@ _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info) } static void -_colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info) +_colorpalette_longpressed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, + void *event_info) { int r = 0,g = 0,b = 0 ,a = 0; Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; diff --git a/src/examples/elementary/combobox_example_01.c b/src/examples/elementary/combobox_example_01.c index 1bd2a92cb1..186e17e68c 100644 --- a/src/examples/elementary/combobox_example_01.c +++ b/src/examples/elementary/combobox_example_01.c @@ -74,7 +74,7 @@ gl_filter_get(void *data, Evas_Object *obj EINA_UNUSED, void *key) } EAPI_MAIN int -elm_main(int argc EINA_UNUSED, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bg; diff --git a/src/examples/elementary/conformant_example_01.c b/src/examples/elementary/conformant_example_01.c index d1b1fd5115..7dc952f3ad 100644 --- a/src/examples/elementary/conformant_example_01.c +++ b/src/examples/elementary/conformant_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *btn, *bx, *en; diff --git a/src/examples/elementary/conformant_example_02.c b/src/examples/elementary/conformant_example_02.c index 47f9050c86..9679c70ca9 100644 --- a/src/examples/elementary/conformant_example_02.c +++ b/src/examples/elementary/conformant_example_02.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *conform, *btn, *bx, *en; diff --git a/src/examples/elementary/ctxpopup_example_01.c b/src/examples/elementary/ctxpopup_example_01.c index 78c84d3210..0b7b9b16dd 100644 --- a/src/examples/elementary/ctxpopup_example_01.c +++ b/src/examples/elementary/ctxpopup_example_01.c @@ -6,13 +6,15 @@ static int list_mouse_down = 0; static void -_dismissed_cb(void *data, Evas_Object *obj, void *event_info) +_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj, + void *event_info EINA_UNUSED) { evas_object_del(obj); } static void -_ctxpopup_item_cb(void *data, Evas_Object *obj, void *event_info) +_ctxpopup_item_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, + void *event_info) { printf("ctxpopup item selected: %s\n", elm_object_item_text_get(event_info)); } @@ -26,7 +28,7 @@ Elm_Object_Item *item_new(Evas_Object *ctxpopup, const char * label, const char } static void -_list_item_cb(void *data, Evas_Object *obj, void *event_info) +_list_item_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) { Evas_Object *ctxpopup; Elm_Object_Item *it; @@ -54,7 +56,7 @@ _list_item_cb(void *data, Evas_Object *obj, void *event_info) } static void -_list_item_cb2(void *data, Evas_Object *obj, void *event_info) +_list_item_cb2(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) { Evas_Object *ctxpopup; Elm_Object_Item *it; @@ -100,7 +102,7 @@ _win_del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *list; diff --git a/src/examples/elementary/datetime_example.c b/src/examples/elementary/datetime_example.c index 745eb37249..008a8df28a 100644 --- a/src/examples/elementary/datetime_example.c +++ b/src/examples/elementary/datetime_example.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *datetime; diff --git a/src/examples/elementary/dayselector_example.c b/src/examples/elementary/dayselector_example.c index eba9c0dfc0..18e1ddacfa 100644 --- a/src/examples/elementary/dayselector_example.c +++ b/src/examples/elementary/dayselector_example.c @@ -12,7 +12,8 @@ #include <Elementary.h> /* Callback function when a day is clicked. */ -static void _changed_cb(void* data, Evas_Object* obj, void* event_info) +static void _changed_cb(void *data EINA_UNUSED, Evas_Object *obj, + void *event_info) { char buf[256]; Elm_Dayselector_Day day; @@ -38,7 +39,7 @@ static void _changed_cb(void* data, Evas_Object* obj, void* event_info) /* End of clicked callback */ EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *dayselector; diff --git a/src/examples/elementary/diskselector_example_01.c b/src/examples/elementary/diskselector_example_01.c index 0b083d9198..d0217a94fc 100644 --- a/src/examples/elementary/diskselector_example_01.c +++ b/src/examples/elementary/diskselector_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *ds; unsigned int i; 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, } static void -_add_cb(void *data, Evas_Object *obj, void *event_info) +_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *ds_it; Evas_Object *ds = data; @@ -34,7 +34,8 @@ _add_cb(void *data, Evas_Object *obj, void *event_info) } static void -_add_ic_cb(void *data, Evas_Object *obj, void *event_info) +_add_ic_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *ds_it; Evas_Object *ic, *ds = data; @@ -49,14 +50,15 @@ _add_ic_cb(void *data, Evas_Object *obj, void *event_info) } static void -_sel_cb(void *data, Evas_Object *obj, void *event_info) +_sel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Elm_Object_Item *ds_it = event_info; printf("Selected label: %s\n", elm_object_item_text_get(ds_it)); } static void -_add_func_cb(void *data, Evas_Object *obj, void *event_info) +_add_func_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *ds_it; Evas_Object *ds = data; @@ -68,7 +70,7 @@ _add_func_cb(void *data, Evas_Object *obj, void *event_info) } static void -_sel_data_cb(void *data, Evas_Object *obj, void *event_info) +_sel_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { char *content = data; Elm_Object_Item *ds_it = event_info; @@ -77,13 +79,15 @@ _sel_data_cb(void *data, Evas_Object *obj, void *event_info) } static void -_free_data(void *data, Evas_Object *obj, void *event_info) +_free_data(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { free(data); } static void -_add_data_cb(void *data, Evas_Object *obj, void *event_info) +_add_data_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *ds_it; Evas_Object *ds = data; @@ -102,7 +106,7 @@ _add_data_cb(void *data, Evas_Object *obj, void *event_info) } static void -_del_cb(void *data, Evas_Object *obj, void *event_info) +_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_ds_it; Evas_Object *ds = data; @@ -112,7 +116,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info) } static void -_unselect_cb(void *data, Evas_Object *obj, void *event_info) +_unselect_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_ds_it; Evas_Object *ds = data; @@ -122,7 +126,7 @@ _unselect_cb(void *data, Evas_Object *obj, void *event_info) } static void -_print_cb(void *data, Evas_Object *obj, void *event_info) +_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { const Eina_List *l, *items; Elm_Object_Item *ds_it; @@ -134,14 +138,14 @@ _print_cb(void *data, Evas_Object *obj, void *event_info) } static void -_clear_cb(void *data, Evas_Object *obj, void *event_info) +_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *ds = data; elm_diskselector_clear(ds); } static void -_select_first_cb(void *data, Evas_Object *obj, void *event_info) +_select_first_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *first_ds_it; Evas_Object *ds = data; @@ -152,7 +156,7 @@ _select_first_cb(void *data, Evas_Object *obj, void *event_info) } static void -_select_last_cb(void *data, Evas_Object *obj, void *event_info) +_select_last_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *last_ds_it; Evas_Object *ds = data; @@ -163,7 +167,7 @@ _select_last_cb(void *data, Evas_Object *obj, void *event_info) } static void -_select_next_cb(void *data, Evas_Object *obj, void *event_info) +_select_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_ds_it, *next_ds_it; Evas_Object *ds = data; @@ -177,7 +181,7 @@ _select_next_cb(void *data, Evas_Object *obj, void *event_info) } static void -_select_prev_cb(void *data, Evas_Object *obj, void *event_info) +_select_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_ds_it, *prev_ds_it; Evas_Object *ds = data; @@ -191,7 +195,7 @@ _select_prev_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *hbx, *ds, *bt; diff --git a/src/examples/elementary/efl_thread_1.c b/src/examples/elementary/efl_thread_1.c index 1d51731378..785b1fe072 100644 --- a/src/examples/elementary/efl_thread_1.c +++ b/src/examples/elementary/efl_thread_1.c @@ -11,7 +11,7 @@ static pthread_t thread_id; // BEGIN - code running in my custom pthread instance // static void * -my_thread_run(void *arg) +my_thread_run(void *arg EINA_UNUSED) { double t = 0.0; @@ -47,13 +47,13 @@ my_thread_new(void) // on window delete - cancel thread then delete window and exit mainloop static void -del(void *data, Evas_Object *obj, void *event_info) +del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { exit(0); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; diff --git a/src/examples/elementary/efl_thread_2.c b/src/examples/elementary/efl_thread_2.c index 1ea51f44e8..433a5ecd37 100644 --- a/src/examples/elementary/efl_thread_2.c +++ b/src/examples/elementary/efl_thread_2.c @@ -18,7 +18,7 @@ static pthread_t thread_id; // BEGIN - code running in my custom pthread instance // static void * -my_thread_run(void *arg) +my_thread_run(void *arg EINA_UNUSED) { double t = 0.0; @@ -63,13 +63,13 @@ my_thread_mainloop_code(void *data) // on window delete - cancel thread then delete window and exit mainloop static void -del(void *data, Evas_Object *obj, void *event_info) +del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { exit(0); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; diff --git a/src/examples/elementary/efl_thread_3.c b/src/examples/elementary/efl_thread_3.c index 36ba69f92a..f61af38a16 100644 --- a/src/examples/elementary/efl_thread_3.c +++ b/src/examples/elementary/efl_thread_3.c @@ -18,7 +18,7 @@ static pthread_t thread_id; // BEGIN - code running in my custom pthread instance // static void * -my_thread_run(void *arg) +my_thread_run(void *arg EINA_UNUSED) { double t = 0.0; @@ -65,13 +65,13 @@ my_thread_mainloop_code(void *data) // on window delete - cancel thread then delete window and exit mainloop static void -del(void *data, Evas_Object *obj, void *event_info) +del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - exit(0); + elm_exit(); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; diff --git a/src/examples/elementary/efl_thread_4.c b/src/examples/elementary/efl_thread_4.c index 71c6d91c22..e5c84f401f 100644 --- a/src/examples/elementary/efl_thread_4.c +++ b/src/examples/elementary/efl_thread_4.c @@ -20,7 +20,7 @@ static int th_exit = 0; // BEGIN - code running in my custom pthread instance // static void * -my_thread_run(void *arg) +my_thread_run(void *arg EINA_UNUSED) { double t = 0.0; @@ -76,7 +76,7 @@ my_thread_mainloop_code(void *data) // just test cancelling the thread static void -down(void *data, Evas *e, Evas_Object *obj, void *event_info) +down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { pthread_mutex_lock(&th_lock); th_exit = 1; @@ -85,7 +85,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info) // on window delete - cancel thread then delete window and exit mainloop static void -del(void *data, Evas_Object *obj, void *event_info) +del(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { pthread_mutex_lock(&th_lock); th_exit = 1; @@ -95,7 +95,7 @@ del(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; diff --git a/src/examples/elementary/efl_thread_5.c b/src/examples/elementary/efl_thread_5.c index a8b933363f..3acb054612 100644 --- a/src/examples/elementary/efl_thread_5.c +++ b/src/examples/elementary/efl_thread_5.c @@ -15,7 +15,7 @@ struct info // BEGIN - code running in my custom thread instance // static void -th_do(void *data, Ecore_Thread *th) +th_do(void *data EINA_UNUSED, Ecore_Thread *th) { double t = 0.0; @@ -44,7 +44,7 @@ th_do(void *data, Ecore_Thread *th) // END - code running in my custom thread instance static void // when mainloop gets feedback from worker -th_feedback(void *data, Ecore_Thread *th, void *msg) +th_feedback(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED, void *msg) { struct info *inf = msg; evas_object_move(rect, inf->x - 50, inf->y - 50); @@ -52,13 +52,13 @@ th_feedback(void *data, Ecore_Thread *th, void *msg) } // BONUS (optional): called after th_do returns and has NOT been cancelled -static void th_end(void *data, Ecore_Thread *th) { printf("thread ended\n"); } +static void th_end(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) { printf("thread ended\n"); } // BONUS (optional): called in mainloop AFTER thread has finished cancelling -static void th_cancel(void *data, Ecore_Thread *th) { printf("thread cancelled\n"); } +static void th_cancel(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) { printf("thread cancelled\n"); } // just test cancelling the thread worker static void -down(void *data, Evas *e, Evas_Object *obj, void *event_info) +down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { if (thr) ecore_thread_cancel(thr); thr = NULL; @@ -66,7 +66,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info) // on window delete - cancel thread then delete window and exit mainloop static void -del(void *data, Evas_Object *obj, void *event_info) +del(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { if (thr) ecore_thread_cancel(thr); thr = NULL; @@ -75,7 +75,7 @@ del(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; diff --git a/src/examples/elementary/efl_thread_6.c b/src/examples/elementary/efl_thread_6.c index 2ad5af77d1..77a2f9c34a 100644 --- a/src/examples/elementary/efl_thread_6.c +++ b/src/examples/elementary/efl_thread_6.c @@ -89,7 +89,7 @@ th_end(void *data, Ecore_Thread *th) } static void // if the thread is cancelled - free pix, keep obj tho -th_cancel(void *data, Ecore_Thread *th) +th_cancel(void *data, Ecore_Thread *th EINA_UNUSED) { struct info *inf = data; @@ -122,7 +122,7 @@ anim(void *data) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *o; Ecore_Thread *th; diff --git a/src/examples/elementary/entry_example.c b/src/examples/elementary/entry_example.c index 51324da276..cc1510eef2 100644 --- a/src/examples/elementary/entry_example.c +++ b/src/examples/elementary/entry_example.c @@ -33,7 +33,7 @@ _edit_buffer_insert(Evas_Object *e, const char *text) } static void -_it_sel_cb(void *data, Evas_Object *obj, void *event) +_it_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event) { App_Inwin_Data *aid = data; Elm_Object_Item *gg_it = event; @@ -44,7 +44,8 @@ _it_sel_cb(void *data, Evas_Object *obj, void *event) } static char * -_emo_label_get(void *data, Evas_Object *obj, const char *part) +_emo_label_get(void *data, Evas_Object *obj EINA_UNUSED, + const char *part EINA_UNUSED) { return strdup(data); } @@ -66,7 +67,7 @@ _emo_content_get(void *data, Evas_Object *obj, const char *part) } static void -_emo_del(void *data, Evas_Object *obj) +_emo_del(void *data, Evas_Object *obj EINA_UNUSED) { free(data); } @@ -111,7 +112,7 @@ _page_grid_add(Evas_Object *parent, App_Inwin_Data *aid) } static void -_btn_insert_cb(void *data, Evas_Object *obj, void *event) +_btn_insert_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { App_Inwin_Data *aid = data; const char *size[] = { @@ -134,7 +135,7 @@ _btn_insert_cb(void *data, Evas_Object *obj, void *event) } static void -_width_changed_cb(void *data, Evas_Object *obj, void *event) +_width_changed_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED) { App_Inwin_Data *aid = data; @@ -142,7 +143,7 @@ _width_changed_cb(void *data, Evas_Object *obj, void *event) } static void -_height_changed_cb(void *data, Evas_Object *obj, void *event) +_height_changed_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED) { App_Inwin_Data *aid = data; @@ -292,7 +293,8 @@ _page_settings_add(Evas_Object *parent, App_Inwin_Data *aid) } static void -_insert_cancel_cb(void *data, Evas_Object *obj, void *event) +_insert_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { App_Inwin_Data *aid = data; @@ -300,13 +302,15 @@ _insert_cancel_cb(void *data, Evas_Object *obj, void *event) } static void -_inwin_del_cb(void *data, Evas *e, Evas_Object *obj, void *event) +_inwin_del_cb(void *data, Evas *e EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { free(data); } static void -_image_insert_cb(void *data, Evas_Object *obj, void *event) +_image_insert_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { App_Data *ad = data; App_Inwin_Data *aid; @@ -372,7 +376,7 @@ _image_insert_cb(void *data, Evas_Object *obj, void *event) } static void -_format_change_cb(void *data, Evas_Object *obj, void *event) +_format_change_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED) { App_Data *ad = data; char fmt_open[5], fmt_close[6]; @@ -433,7 +437,7 @@ all_done: } static void -_autosave_change_cb(void *data, Evas_Object *obj, void *event) +_autosave_change_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED) { App_Data *ad = data; Eina_Bool state = elm_check_state_get(obj); @@ -443,7 +447,8 @@ _autosave_change_cb(void *data, Evas_Object *obj, void *event) } static void -_edit_dblclick_cb(void *data, Evas_Object *obj, void *event) +_edit_dblclick_cb(void *data EINA_UNUSED, Evas_Object *obj, + void *event EINA_UNUSED) { int current_cursor; @@ -478,7 +483,8 @@ _edit_dblclick_cb(void *data, Evas_Object *obj, void *event) } static void -_edit_tplclick_cb(void *data, Evas_Object *obj, void *event) +_edit_tplclick_cb(void *data EINA_UNUSED, Evas_Object *obj, + void *event EINA_UNUSED) { elm_entry_cursor_line_begin_set(obj); elm_entry_cursor_selection_begin(obj); @@ -487,7 +493,7 @@ _edit_tplclick_cb(void *data, Evas_Object *obj, void *event) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *tb, *en, *o, *icon; App_Data app; diff --git a/src/examples/elementary/evas3d_map_example.c b/src/examples/elementary/evas3d_map_example.c index 6814db23b6..d71017858a 100644 --- a/src/examples/elementary/evas3d_map_example.c +++ b/src/examples/elementary/evas3d_map_example.c @@ -483,25 +483,25 @@ zoom_factor_set(double new_zoom_factor) } static void -zoom_in_cb(void *data, - Evas_Object *obj, - void *event_info) +zoom_in_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { zoom_factor_set(zoom_factor + 1); } static void -zoom_out_cb(void *data, - Evas_Object *obj, - void *event_info) +zoom_out_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { zoom_factor_set(zoom_factor - 1); } static void -zoom_to_2d_map_cb(void *data, - Evas_Object *obj, - void *event_info) +zoom_to_2d_map_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { double s, t; double lon, lat; @@ -524,9 +524,9 @@ zoom_to_2d_map_cb(void *data, } static void -zoom_to_3d_map_cb(void *data, - Evas_Object *obj, - void *event_info) +zoom_to_3d_map_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { if (map_dimension_state == MAP_DIMENSION_STATE_3D) return; @@ -578,9 +578,9 @@ submenu_info_add(Elm_Object_Item *parent) } static void -map_zoom_change_cb(void *data, - Evas_Object *obj, - void *event_info) +map_zoom_change_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { int cur_zoom_factor; @@ -595,8 +595,8 @@ map_zoom_change_cb(void *data, } static void -map_mouse_down_cb(void *data, - Evas *e, +map_mouse_down_cb(void *data EINA_UNUSED, + Evas *e EINA_UNUSED, Evas_Object *o, void *event_info) { @@ -658,8 +658,8 @@ map_mouse_down_cb(void *data, } static void -mouse_down_cb(void *data, - Evas *e, +mouse_down_cb(void *data EINA_UNUSED, + Evas *e EINA_UNUSED, Evas_Object *o, void *event_info) { @@ -730,9 +730,9 @@ mouse_down_cb(void *data, } static void -mouse_move_cb(void *data, - Evas *e, - Evas_Object *o, +mouse_move_cb(void *data EINA_UNUSED, + Evas *e EINA_UNUSED, + Evas_Object *o EINA_UNUSED, void *event_info) { Evas_Event_Mouse_Move *ev = event_info; @@ -771,8 +771,8 @@ mouse_move_cb(void *data, } static void -mouse_up_cb(void *data, - Evas *e, +mouse_up_cb(void *data EINA_UNUSED, + Evas *e EINA_UNUSED, Evas_Object *o, void *event_info) { @@ -822,9 +822,9 @@ mouse_up_cb(void *data, } static void -mouse_wheel_cb(void *data, - Evas *e, - Evas_Object *o, +mouse_wheel_cb(void *data EINA_UNUSED, + Evas *e EINA_UNUSED, + Evas_Object *o EINA_UNUSED, void *event_info) { Evas_Event_Mouse_Wheel *ev = event_info; @@ -1009,8 +1009,8 @@ mesh_setup(void) static void hoversel_cb(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { elm_map_source_set(map, ELM_MAP_SOURCE_TYPE_TILE, (char *)data); zoom_factor_set(zoom_factor); @@ -1032,9 +1032,9 @@ hoversel_setup(Evas_Object *parent) } static void -rotation_toggle_changed_cb(void *data, +rotation_toggle_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { /* Stop rotating earth. */ if (animator) @@ -1067,9 +1067,9 @@ rotation_toggle_setup(Evas_Object *parent) } static void -light_toggle_changed_cb(void *data, +light_toggle_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { if (elm_check_state_get(obj)) { @@ -1104,9 +1104,9 @@ light_toggle_setup(Evas_Object *parent) static void -slider_changed_cb(void *data, +slider_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { double new_zoom_factor = ROUND(elm_slider_value_get(obj)); @@ -1133,7 +1133,7 @@ zoom_slider_setup(Evas_Object *parent) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { char buf[PATH_MAX]; diff --git a/src/examples/elementary/evas3d_object_on_button_example.c b/src/examples/elementary/evas3d_object_on_button_example.c index 19e223aa7b..e4e1c43c83 100644 --- a/src/examples/elementary/evas3d_object_on_button_example.c +++ b/src/examples/elementary/evas3d_object_on_button_example.c @@ -244,7 +244,7 @@ _scene_setup(Scene_Data *data) } int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Scene_Data data; diff --git a/src/examples/elementary/evas3d_scene_on_button_example.c b/src/examples/elementary/evas3d_scene_on_button_example.c index a70cf4a587..f2c64a86df 100644 --- a/src/examples/elementary/evas3d_scene_on_button_example.c +++ b/src/examples/elementary/evas3d_scene_on_button_example.c @@ -231,8 +231,8 @@ _play_scene(void *data, evas_canvas3d_node_scale_set(d->mesh_node, 1.0, 1.0, 1.0); } -int -elm_main(int argc, char **argv) +EAPI_MAIN int +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Scene_Data data; diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c index 0530e1a663..4ee9125240 100644 --- a/src/examples/elementary/filemvc.c +++ b/src/examples/elementary/filemvc.c @@ -72,8 +72,9 @@ _promise_then(void *data, const Efl_Event *event) } static void -_promise_error(void *data, const Efl_Event* err) +_promise_error(void *data EINA_UNUSED, const Efl_Event* err EINA_UNUSED) { + printf("Promise error!\n"); } static void @@ -125,7 +126,7 @@ _thumb_error_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UN } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Efl_Model_Test_Filemvc_Data priv; Evas_Object *win, *panes, *bxr, *genlist, *vpanes; diff --git a/src/examples/elementary/fileselector_button_example.c b/src/examples/elementary/fileselector_button_example.c index 2a1929d0ee..b5cdc3b802 100644 --- a/src/examples/elementary/fileselector_button_example.c +++ b/src/examples/elementary/fileselector_button_example.c @@ -12,9 +12,7 @@ #include <Elementary.h> static void /* hook on the sole smart callback */ -_file_chosen(void *data, - Evas_Object *obj, - void *event_info) +_file_chosen(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { Evas_Object *entry = data; const char *file = event_info; @@ -29,9 +27,8 @@ _file_chosen(void *data, /* toggle inwin mode */ static void -_inwin_mode_toggle(void *data, - Evas_Object *obj, - void *event_info) +_inwin_mode_toggle(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_bt = data; Eina_Bool old_val = elm_fileselector_button_inwin_mode_get(fs_bt); @@ -41,9 +38,8 @@ _inwin_mode_toggle(void *data, } static void -_current_sel_toggle(void *data, - Evas_Object *obj, - void *event_info) +_current_sel_toggle(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_bt = data; Eina_Bool old_val = elm_fileselector_is_save_get(fs_bt); @@ -54,9 +50,9 @@ _current_sel_toggle(void *data, } static void -_folder_only_toggle(void *data, - Evas_Object *obj, - void *event_info) +_folder_only_toggle(void *data, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_bt = data; Eina_Bool old_val = elm_fileselector_folder_only_get(fs_bt); @@ -66,9 +62,8 @@ _folder_only_toggle(void *data, } static void -_expandable_toggle(void *data, - Evas_Object *obj, - void *event_info) +_expandable_toggle(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_bt = data; Eina_Bool old_val = elm_fileselector_expandable_get(fs_bt); @@ -78,8 +73,7 @@ _expandable_toggle(void *data, } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *vbox, *hbox, *ic, *ck, *fs_bt, *en, *lb, *sep; diff --git a/src/examples/elementary/fileselector_entry_example.c b/src/examples/elementary/fileselector_entry_example.c index e44ab0553a..d27dc510cd 100644 --- a/src/examples/elementary/fileselector_entry_example.c +++ b/src/examples/elementary/fileselector_entry_example.c @@ -13,8 +13,8 @@ /* hook on the file,chosen smart callback */ static void -_file_chosen(void *data, - Evas_Object *obj, +_file_chosen(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { const char *file = event_info; @@ -28,8 +28,8 @@ _file_chosen(void *data, /* toggle inwin mode */ static void _inwin_mode_toggle(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_entry = data; Eina_Bool old_val = elm_fileselector_entry_inwin_mode_get(fs_entry); @@ -40,8 +40,8 @@ _inwin_mode_toggle(void *data, static void _current_sel_toggle(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_entry = data; Eina_Bool old_val = elm_fileselector_is_save_get(fs_entry); @@ -53,8 +53,8 @@ _current_sel_toggle(void *data, static void _folder_only_toggle(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_entry = data; Eina_Bool old_val = elm_fileselector_folder_only_get(fs_entry); @@ -65,8 +65,8 @@ _folder_only_toggle(void *data, static void _expandable_toggle(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs_entry = data; Eina_Bool old_val = elm_fileselector_expandable_get(fs_entry); @@ -76,8 +76,8 @@ _expandable_toggle(void *data, } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *vbox, *hbox, *ic, *ck, *fs_entry, *sep; diff --git a/src/examples/elementary/fileselector_example.c b/src/examples/elementary/fileselector_example.c index 832f0534ad..320fe64231 100644 --- a/src/examples/elementary/fileselector_example.c +++ b/src/examples/elementary/fileselector_example.c @@ -13,8 +13,8 @@ /* 'done' cb */ static void -_fs_done(void *data, - Evas_Object *obj, +_fs_done(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { const char *selected = event_info; @@ -29,8 +29,8 @@ _fs_done(void *data, /* 'selected' cb */ static void -_fs_selected(void *data, - Evas_Object *obj, +_fs_selected(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { const char *selected = event_info; @@ -41,8 +41,8 @@ _fs_selected(void *data, static void _is_save_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs = data; Eina_Bool old_val = elm_fileselector_is_save_get(fs); @@ -55,8 +55,8 @@ _is_save_clicked(void *data, static void _folder_only_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs = data; Eina_Bool old_val = elm_fileselector_folder_only_get(fs); @@ -69,8 +69,8 @@ _folder_only_clicked(void *data, static void _expandable_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs = data; Eina_Bool old_val = elm_fileselector_expandable_get(fs); @@ -83,8 +83,8 @@ _expandable_clicked(void *data, static void _sel_get_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs = data; printf("Current selection is: %s\n", elm_fileselector_selected_get(fs)); @@ -92,8 +92,8 @@ _sel_get_clicked(void *data, static void _path_get_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *fs = data; printf("Current selection's directory path is: %s\n", @@ -101,8 +101,8 @@ _path_get_clicked(void *data, } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *fs, *vbox, *buttons_bx, *bt, *sep, *bx; diff --git a/src/examples/elementary/fileviewlist.c b/src/examples/elementary/fileviewlist.c index 96f49557de..af14785118 100644 --- a/src/examples/elementary/fileviewlist.c +++ b/src/examples/elementary/fileviewlist.c @@ -32,7 +32,7 @@ _cleanup_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Efl_Model_Test_Fileview_Data priv; Evas_Object *win = NULL; diff --git a/src/examples/elementary/flip_example_01.c b/src/examples/elementary/flip_example_01.c index 7ba4927016..d601010afb 100644 --- a/src/examples/elementary/flip_example_01.c +++ b/src/examples/elementary/flip_example_01.c @@ -6,7 +6,7 @@ static void _change_interaction(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *rect, *rect2, *flip, *radio, *radio2, *radio3; @@ -78,7 +78,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_change_interaction(void *data, Evas_Object *obj, void *event_info) +_change_interaction(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { elm_flip_interaction_set(data, elm_radio_state_value_get(obj)); elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS); diff --git a/src/examples/elementary/flipselector_example.c b/src/examples/elementary/flipselector_example.c index 2c7862532d..1feeaaaca2 100644 --- a/src/examples/elementary/flipselector_example.c +++ b/src/examples/elementary/flipselector_example.c @@ -22,8 +22,8 @@ static const char *commands = \ void /* unselect the item shown in the flip selector */ _unsel_cb(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *it; Evas_Object *fp = data; @@ -34,8 +34,8 @@ _unsel_cb(void *data, void /* delete the item shown in the flip selector */ _del_cb(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *it; Evas_Object *fp = data; @@ -45,25 +45,25 @@ _del_cb(void *data, } void /* underflow callback */ -_underflow_cb(void *data, - Evas_Object *obj, - void *event_info) +_underflow_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { fprintf(stdout, "Underflow!\n"); } void /* overflow callback */ -_overflow_cb(void *data, - Evas_Object *obj, - void *event_info) +_overflow_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { fprintf(stdout, "Overflow!\n"); } static Eina_Bool _on_keydown(void *data, - Evas_Object *object, - Evas_Object *src, + Evas_Object *object EINA_UNUSED, + Evas_Object *src EINA_UNUSED, Evas_Callback_Type type, void *event_info) { @@ -123,7 +123,7 @@ _on_keydown(void *data, } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { unsigned int i; Evas_Object *win, *bx, *fp, *bt; diff --git a/src/examples/elementary/frame_example_01.c b/src/examples/elementary/frame_example_01.c index 711fb8ba73..4e8862e13d 100644 --- a/src/examples/elementary/frame_example_01.c +++ b/src/examples/elementary/frame_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win; Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4; diff --git a/src/examples/elementary/general_funcs_example.c b/src/examples/elementary/general_funcs_example.c index 56c06d0b7c..fbc75648ff 100644 --- a/src/examples/elementary/general_funcs_example.c +++ b/src/examples/elementary/general_funcs_example.c @@ -21,51 +21,51 @@ struct test_data struct test_data d = {NULL, EINA_TRUE, EINA_TRUE}; static void -_btn_enabled_cb(void *data, - Evas_Object *obj, - void *event) +_btn_enabled_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { elm_object_disabled_set(d.btn, !d.btn_enabled); } static void /* focus callback */ -_btn_focus_cb(void *data, - Evas_Object *obj, - void *event) +_btn_focus_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { elm_object_focus_set(d.btn, EINA_TRUE); } static void /* unfocus callback */ -_btn_unfocus_cb(void *data, - Evas_Object *obj, - void *event) +_btn_unfocus_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { elm_object_focus_set(d.btn, EINA_FALSE); } static void /* focus allow callback */ -_btn_focus_allow_cb(void *data, - Evas_Object *obj, - void *event) +_btn_focus_allow_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event EINA_UNUSED) { elm_object_focus_allow_set(d.btn, d.btn_gets_focus); } static void /* scaling callback */ -_btn_scale_cb(void *data, +_btn_scale_cb(void *data EINA_UNUSED, Evas_Object *obj, - void *event) + void *event EINA_UNUSED) { elm_object_scale_set(d.btn, elm_slider_value_get(obj)); } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *box, *frame, *check, *b, *slider; diff --git a/src/examples/elementary/gengrid_example.c b/src/examples/elementary/gengrid_example.c index a1c6439c3c..410b6daef7 100644 --- a/src/examples/elementary/gengrid_example.c +++ b/src/examples/elementary/gengrid_example.c @@ -36,7 +36,7 @@ static Evas_Object *before_bt, *after_bt; static void _horizontal_grid(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; @@ -47,7 +47,7 @@ _horizontal_grid(void *data, static void _always_select_change(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; Eina_Bool always = elm_check_state_get(obj); @@ -65,7 +65,7 @@ _always_select_change(void *data, static void _bouncing_change(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; Eina_Bool bounce = elm_check_state_get(obj); @@ -80,7 +80,7 @@ _bouncing_change(void *data, static void _multi_change(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; Eina_Bool multi = elm_check_state_get(obj); @@ -106,7 +106,7 @@ _multi_change(void *data, static void _no_sel_change(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; Eina_Bool no_sel = elm_check_state_get(obj); @@ -123,7 +123,7 @@ _no_sel_change(void *data, /* item selection callback */ static void _grid_sel(void *data, - Evas_Object *obj, + Evas_Object *obj EINA_UNUSED, void *event_info) { unsigned int x, y; @@ -150,8 +150,8 @@ _item_new(void) /* "insert before" callback */ static void _before_bt_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Example_Item *it; Evas_Object *grid = data; @@ -168,8 +168,8 @@ _before_bt_clicked(void *data, /* "insert after" callback */ static void _after_bt_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Example_Item *it; Evas_Object *grid = data; @@ -186,8 +186,8 @@ _after_bt_clicked(void *data, /* prepend an item */ static void _prepend_bt_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Example_Item *it; Evas_Object *grid = data; @@ -199,8 +199,8 @@ _prepend_bt_clicked(void *data, /* append an item */ static void _append_bt_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Evas_Object *grid = data; Example_Item *it = _item_new(); @@ -211,8 +211,8 @@ _append_bt_clicked(void *data, /* delete items */ static void _clear_cb(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { elm_gengrid_clear(data); @@ -222,8 +222,8 @@ _clear_cb(void *data, /* bring in 1st item */ static void _bring_1st_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data); @@ -235,8 +235,8 @@ _bring_1st_clicked(void *data, /* show last item */ static void _show_last_clicked(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *gg_it = elm_gengrid_last_item_get(data); @@ -248,8 +248,8 @@ _show_last_clicked(void *data, /* disable selected item */ static void _toggle_disabled_cb(void *data, - Evas_Object *obj, - void *event_info) + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(data); @@ -263,7 +263,7 @@ _toggle_disabled_cb(void *data, static void _size_changed(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { Evas_Object *grid = data; int size = elm_spinner_value_get(obj); @@ -273,8 +273,8 @@ _size_changed(void *data, /* item double click callback */ static void -_double_click(void *data, - Evas_Object *obj, +_double_click(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { fprintf(stdout, "Double click on item with handle %p\n", event_info); @@ -282,8 +282,8 @@ _double_click(void *data, /* item long press callback */ static void -_long_pressed(void *data, - Evas_Object *obj, +_long_pressed(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { fprintf(stdout, "Long press on item with handle %p\n", event_info); @@ -292,8 +292,8 @@ _long_pressed(void *data, /* label fetching callback */ static char * _grid_label_get(void *data, - Evas_Object *obj, - const char *part) + Evas_Object *obj EINA_UNUSED, + const char *part EINA_UNUSED) { const Example_Item *it = data; char buf[256]; @@ -338,9 +338,9 @@ _grid_content_get(void *data, /* state fetching callback */ static Eina_Bool -_grid_state_get(void *data, - Evas_Object *obj, - const char *part) +_grid_state_get(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + const char *part EINA_UNUSED) { return EINA_FALSE; } @@ -348,7 +348,7 @@ _grid_state_get(void *data, /* deletion callback */ static void _grid_del(void *data, - Evas_Object *obj) + Evas_Object *obj EINA_UNUSED) { Example_Item *it = data; @@ -358,9 +358,9 @@ _grid_del(void *data, /* scrolling animation stopped callback */ static void -_grid_scroll_stopped_cb(void *data, +_grid_scroll_stopped_cb(void *data EINA_UNUSED, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { int h_pagenumber = 0, v_pagenumber = 0; elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber); @@ -372,7 +372,7 @@ _grid_scroll_stopped_cb(void *data, static void _h_align_change_cb(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { double v_align; double val = elm_slider_value_get(obj); @@ -386,7 +386,7 @@ _h_align_change_cb(void *data, static void _v_align_change_cb(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { double h_align; double val = elm_slider_value_get(obj); @@ -401,7 +401,7 @@ _v_align_change_cb(void *data, static void _page_change_cb(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { double val = elm_slider_value_get(obj); @@ -411,8 +411,8 @@ _page_change_cb(void *data, } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, *sp; Eina_Bool bounce; diff --git a/src/examples/elementary/genlist_example_01.c b/src/examples/elementary/genlist_example_01.c index 8360bcc5a9..b8afb22134 100644 --- a/src/examples/elementary/genlist_example_01.c +++ b/src/examples/elementary/genlist_example_01.c @@ -8,7 +8,7 @@ static Elm_Genlist_Item_Class *_itc = NULL; static char * -_item_label_get(void *data, Evas_Object *obj, const char *part) +_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) { char buf[256]; snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data); @@ -16,7 +16,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_item_content_get(void *data, Evas_Object *obj, const char *part) +_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -35,7 +35,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win; Evas_Object *list; diff --git a/src/examples/elementary/genlist_example_02.c b/src/examples/elementary/genlist_example_02.c index 28e12691f8..bce62ccf20 100644 --- a/src/examples/elementary/genlist_example_02.c +++ b/src/examples/elementary/genlist_example_02.c @@ -9,7 +9,7 @@ static Elm_Genlist_Item_Class *_itc = NULL; static char * -_item_label_get(void *data, Evas_Object *obj, const char *part) +_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -27,7 +27,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_item_content_get(void *data, Evas_Object *obj, const char *part) +_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -46,7 +46,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info) } static void -_show_status_cb(void *data, Evas_Object *o, void *event_info) +_show_status_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Evas_Coord x, y, w, h, mx, my; @@ -79,14 +79,14 @@ _show_status_cb(void *data, Evas_Object *o, void *event_info) } static void -_realize_cb(void *data, Evas_Object *o, void *event_info) +_realize_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; elm_genlist_realized_items_update(list); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *hbox; Evas_Object *list, *btn; diff --git a/src/examples/elementary/genlist_example_03.c b/src/examples/elementary/genlist_example_03.c index 4e117b679d..2517962c91 100644 --- a/src/examples/elementary/genlist_example_03.c +++ b/src/examples/elementary/genlist_example_03.c @@ -8,7 +8,7 @@ static Elm_Genlist_Item_Class *_itc = NULL; static char * -_item_label_get(void *data, Evas_Object *obj, const char *part) +_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part) { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -28,7 +28,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_item_content_get(void *data, Evas_Object *obj, const char *part) +_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -72,7 +72,7 @@ _genlist_fill(Evas_Object *list) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box; Evas_Object *list; diff --git a/src/examples/elementary/genlist_example_04.c b/src/examples/elementary/genlist_example_04.c index 5b4e15c270..abb15dd65d 100644 --- a/src/examples/elementary/genlist_example_04.c +++ b/src/examples/elementary/genlist_example_04.c @@ -10,7 +10,7 @@ static Elm_Genlist_Item_Class *_itc_group = NULL; static int nitems = 0; static char * -_item_label_get(void *data, Evas_Object *obj, const char *part) +_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part) { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -30,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_item_content_get(void *data, Evas_Object *obj, const char *part) +_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -49,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info) } static char * -_group_label_get(void *data, Evas_Object *obj, const char *part) +_group_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) { char buf[256]; int i = (int)(long)data; @@ -60,7 +60,7 @@ _group_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_group_content_get(void *data, Evas_Object *obj, const char *part) +_group_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -72,7 +72,7 @@ _group_content_get(void *data, Evas_Object *obj, const char *part) } static void -_append_cb(void *data, Evas_Object *o, void *event_info) +_append_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; @@ -84,7 +84,7 @@ _append_cb(void *data, Evas_Object *o, void *event_info) } static void -_prepend_cb(void *data, Evas_Object *o, void *event_info) +_prepend_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; @@ -96,7 +96,7 @@ _prepend_cb(void *data, Evas_Object *o, void *event_info) } static void -_insert_before_cb(void *data, Evas_Object *o, void *event_info) +_insert_before_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -111,7 +111,7 @@ _insert_before_cb(void *data, Evas_Object *o, void *event_info) } static void -_insert_after_cb(void *data, Evas_Object *o, void *event_info) +_insert_after_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -126,7 +126,7 @@ _insert_after_cb(void *data, Evas_Object *o, void *event_info) } static void -_next_cb(void *data, Evas_Object *o, void *event_info) +_next_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -139,7 +139,7 @@ _next_cb(void *data, Evas_Object *o, void *event_info) } static void -_prev_cb(void *data, Evas_Object *o, void *event_info) +_prev_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -152,7 +152,7 @@ _prev_cb(void *data, Evas_Object *o, void *event_info) } static void -_bring_in_cb(void *data, Evas_Object *o, void *event_info) +_bring_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -161,7 +161,7 @@ _bring_in_cb(void *data, Evas_Object *o, void *event_info) } static void -_show_cb(void *data, Evas_Object *o, void *event_info) +_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -170,7 +170,7 @@ _show_cb(void *data, Evas_Object *o, void *event_info) } static void -_middle_in_cb(void *data, Evas_Object *o, void *event_info) +_middle_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -179,7 +179,7 @@ _middle_in_cb(void *data, Evas_Object *o, void *event_info) } static void -_middle_show_cb(void *data, Evas_Object *o, void *event_info) +_middle_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -188,7 +188,7 @@ _middle_show_cb(void *data, Evas_Object *o, void *event_info) } static void -_top_in_cb(void *data, Evas_Object *o, void *event_info) +_top_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -197,7 +197,7 @@ _top_in_cb(void *data, Evas_Object *o, void *event_info) } static void -_top_show_cb(void *data, Evas_Object *o, void *event_info) +_top_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *glit = data; if (!glit) return; @@ -206,7 +206,7 @@ _top_show_cb(void *data, Evas_Object *o, void *event_info) } static void -_realize_cb(void *data, Evas_Object *o, void *event_info) +_realize_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -232,7 +232,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *fbox; Evas_Object *list; diff --git a/src/examples/elementary/genlist_example_05.c b/src/examples/elementary/genlist_example_05.c index ee2f67888a..913a646092 100644 --- a/src/examples/elementary/genlist_example_05.c +++ b/src/examples/elementary/genlist_example_05.c @@ -18,7 +18,7 @@ static Elm_Genlist_Item_Class *_itfav = NULL; static int nitems = 0; static char * -_item_label_get(void *data, Evas_Object *obj, const char *part) +_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part) { char buf[256] = {0}; Node_Data *d = data; @@ -30,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_item_content_get(void *data, Evas_Object *obj, const char *part) +_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -49,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info) } static char * -_parent_label_get(void *data, Evas_Object *obj, const char *part) +_parent_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) { char buf[256]; Node_Data *d = data; @@ -61,7 +61,7 @@ _parent_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_parent_content_get(void *data, Evas_Object *obj, const char *part) +_parent_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -73,7 +73,7 @@ _parent_content_get(void *data, Evas_Object *obj, const char *part) } static char * -_favorite_label_get(void *data, Evas_Object *obj, const char *part) +_favorite_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part) { char buf[256] = {0}; Node_Data *d = data; @@ -85,7 +85,7 @@ _favorite_label_get(void *data, Evas_Object *obj, const char *part) } static Evas_Object * -_favorite_content_get(void *data, Evas_Object *obj, const char *part) +_favorite_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { Evas_Object *ic = elm_icon_add(obj); @@ -97,7 +97,7 @@ _favorite_content_get(void *data, Evas_Object *obj, const char *part) } static void -_append_cb(void *data, Evas_Object *o, void *event_info) +_append_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit, *parent = NULL; @@ -127,7 +127,7 @@ _append_cb(void *data, Evas_Object *o, void *event_info) } static void -_favorite_cb(void *data, Evas_Object *o, void *event_info) +_favorite_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -150,7 +150,7 @@ _favorite_cb(void *data, Evas_Object *o, void *event_info) } static void -_add_child_cb(void *data, Evas_Object *o, void *event_info) +_add_child_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -210,7 +210,7 @@ _clear_list(Node_Data *d) } static void -_del_item_cb(void *data, Evas_Object *o, void *event_info) +_del_item_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *list = data; Elm_Object_Item *glit = elm_genlist_selected_item_get(list); @@ -235,7 +235,7 @@ _del_item_cb(void *data, Evas_Object *o, void *event_info) } static void -_expand_request_cb(void *data, Evas_Object *o, void *event_info) +_expand_request_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Elm_Object_Item *glit = event_info; printf("expand request on item: %p\n", event_info); @@ -243,7 +243,7 @@ _expand_request_cb(void *data, Evas_Object *o, void *event_info) } static void -_contract_request_cb(void *data, Evas_Object *o, void *event_info) +_contract_request_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Elm_Object_Item *glit = event_info; printf("contract request on item: %p\n", event_info); @@ -251,7 +251,7 @@ _contract_request_cb(void *data, Evas_Object *o, void *event_info) } static void -_expanded_cb(void *data, Evas_Object *o, void *event_info) +_expanded_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Eina_List *l; Elm_Object_Item *glit = event_info; @@ -282,7 +282,7 @@ _expanded_cb(void *data, Evas_Object *o, void *event_info) } static void -_contracted_cb(void *data, Evas_Object *o, void *event_info) +_contracted_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Elm_Object_Item *glit = event_info; elm_genlist_item_subitems_clear(glit); @@ -305,7 +305,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *fbox; Evas_Object *list; diff --git a/src/examples/elementary/glview_example_01.c b/src/examples/elementary/glview_example_01.c index fc2b495d44..4d065dd2d2 100644 --- a/src/examples/elementary/glview_example_01.c +++ b/src/examples/elementary/glview_example_01.c @@ -224,21 +224,21 @@ _anim(void *data) } static void -_on_done(void *data, Evas_Object *obj, void *event_info) +_on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { evas_object_del((Evas_Object*)data); elm_exit(); } static void -_del(void *data, Evas *evas, Evas_Object *obj, void *event_info) +_del(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { Ecore_Animator *ani = evas_object_data_get(obj, "ani"); ecore_animator_del(ani); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *bt, *gl; Ecore_Animator *ani; diff --git a/src/examples/elementary/hover_example_01.c b/src/examples/elementary/hover_example_01.c index f4a76220b2..d6fe32db3a 100644 --- a/src/examples/elementary/hover_example_01.c +++ b/src/examples/elementary/hover_example_01.c @@ -4,19 +4,19 @@ #include <Elementary.h> static void -_show_hover(void *data, Evas_Object *obj, void *event_info) +_show_hover(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { evas_object_show(data); } static void -_hide_hover(void *data, Evas_Object *obj, void *event_info) +_hide_hover(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { evas_object_hide(data); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bt, *bt2, *rect, *rect2, *rect3, *hover; diff --git a/src/examples/elementary/hoversel_example_01.c b/src/examples/elementary/hoversel_example_01.c index 2c6f70a8f5..289996cf24 100644 --- a/src/examples/elementary/hoversel_example_01.c +++ b/src/examples/elementary/hoversel_example_01.c @@ -8,14 +8,14 @@ static void _free(void *data, Evas_Object *obj, void *event_info); static void _add_item(void *data, Evas_Object *obj, void *event_info); static void -_clear_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) +_clear_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { if (!data) return; elm_hoversel_clear((Evas_Object *)data); } static void -_reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) +_reverse_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { if (!data) return; elm_object_mirrored_set(data, !elm_object_mirrored_get (data)); @@ -25,7 +25,7 @@ _reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) Eina_Bool is_eng = EINA_TRUE; static void -_arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) +_arabic_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { if (!data) return; is_eng = !is_eng; @@ -35,7 +35,7 @@ _arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *rect, *hoversel, *btn = NULL; @@ -94,7 +94,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_print_items(void *data, Evas_Object *obj, void *event_info) +_print_items(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { const Eina_List *items = elm_hoversel_items_get(obj); const Eina_List *l; @@ -105,7 +105,7 @@ _print_items(void *data, Evas_Object *obj, void *event_info) } static void -_add_item(void *data, Evas_Object *obj, void *event_info) +_add_item(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { static int num = 0; char *str = malloc(sizeof(char) * 11); @@ -122,7 +122,7 @@ _add_item(void *data, Evas_Object *obj, void *event_info) } static void -_free(void *data, Evas_Object *obj, void *event_info) +_free(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { free(data); } diff --git a/src/examples/elementary/icon_cxx_example_01.cc b/src/examples/elementary/icon_cxx_example_01.cc index bb844aba4d..0d4bcbbf78 100644 --- a/src/examples/elementary/icon_cxx_example_01.cc +++ b/src/examples/elementary/icon_cxx_example_01.cc @@ -6,7 +6,7 @@ #include <Elementary.hh> EAPI_MAIN int -elm_main (int argc, char *argv[]) +elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); diff --git a/src/examples/elementary/icon_example_01.c b/src/examples/elementary/icon_example_01.c index e3ae7eed80..2cf8674b5f 100644 --- a/src/examples/elementary/icon_example_01.c +++ b/src/examples/elementary/icon_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *icon; const char *path, *group, *name; diff --git a/src/examples/elementary/image_example_01.c b/src/examples/elementary/image_example_01.c index 62674632ea..fd95e664bc 100644 --- a/src/examples/elementary/image_example_01.c +++ b/src/examples/elementary/image_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *image; char buf[PATH_MAX]; diff --git a/src/examples/elementary/index_example_01.c b/src/examples/elementary/index_example_01.c index d23157611a..93f1ee3f8f 100644 --- a/src/examples/elementary/index_example_01.c +++ b/src/examples/elementary/index_example_01.c @@ -18,7 +18,7 @@ static const char *dict[] = \ }; static void -_index_item_del(void *data, Evas_Object *obj, void *event_info) +_index_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { fprintf(stdout, "Deleting index node (%s). Comparing index " "item data reported via callback with the one returned by " @@ -30,7 +30,7 @@ _index_item_del(void *data, Evas_Object *obj, void *event_info) /* delete an index item */ static void -_item_del(void *data, Evas_Object *obj, void *event_info) +_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *it = elm_index_selected_item_get(data, 0); @@ -45,14 +45,14 @@ _item_del(void *data, Evas_Object *obj, void *event_info) } static void -_item_del_all(void *data, Evas_Object *obj, void *event_info) +_item_del_all(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_index_item_clear(data); elm_index_level_go(data, 0); } static void -_active_set(void *data, Evas_Object *obj, void *event_info) +_active_set(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Eina_Bool disabled = elm_index_autohide_disabled_get(data); elm_index_autohide_disabled_set(data, !disabled); @@ -63,13 +63,13 @@ _active_set(void *data, Evas_Object *obj, void *event_info) /* "delay,changed" hook */ static void -_index_changed(void *data, Evas_Object *obj, void *event_info) +_index_changed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { elm_list_item_bring_in(elm_object_item_data_get(event_info)); } static void -_index_selected(void *data, Evas_Object *obj, void *event_info) +_index_selected(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) { Elm_Object_Item *lit = event_info; @@ -80,7 +80,7 @@ _index_selected(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *hbox, *vbox, *bt, *sep, *list, *id; Elm_Object_Item *lit; diff --git a/src/examples/elementary/index_example_02.c b/src/examples/elementary/index_example_02.c index e461125ccf..820f095e29 100644 --- a/src/examples/elementary/index_example_02.c +++ b/src/examples/elementary/index_example_02.c @@ -24,8 +24,8 @@ static const char *items[] = }; static void -_index_changed(void *data, - Evas_Object *obj, +_index_changed(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { Elm_Object_Item *item = elm_object_item_data_get(event_info); @@ -34,15 +34,15 @@ _index_changed(void *data, static char * _grid_label_get(void *data, - Evas_Object *obj, - const char *part) + Evas_Object *obj EINA_UNUSED, + const char *part EINA_UNUSED) { int idx = (int)(uintptr_t)data; return strdup(items[idx]); } Evas_Object * -_grid_content_get(void *data, +_grid_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part) { @@ -80,8 +80,8 @@ _index_icmp(const void *data1, } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *grid, *idx; Elm_Object_Item *gg_it; diff --git a/src/examples/elementary/inwin_example.c b/src/examples/elementary/inwin_example.c index 3dba229e63..48b9820246 100644 --- a/src/examples/elementary/inwin_example.c +++ b/src/examples/elementary/inwin_example.c @@ -12,7 +12,7 @@ static const char *styles[] = { static int current_style = 0; static void -_inwin_hide(void *data, Evas_Object *obj, void *event) +_inwin_hide(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) { if (inwin) { @@ -24,7 +24,7 @@ _inwin_hide(void *data, Evas_Object *obj, void *event) } static void -_inwin_destroy(void *data, Evas_Object *obj, void *event) +_inwin_destroy(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) { if (inwin) { @@ -37,7 +37,7 @@ _inwin_destroy(void *data, Evas_Object *obj, void *event) } static void -_btn_click_cb(void *data, Evas_Object *obj, void *event) +_btn_click_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) { Evas_Object *o, *parent; @@ -85,7 +85,7 @@ _btn_click_cb(void *data, Evas_Object *obj, void *event) } static void -_win_del_cb(void *data, Evas_Object *obj, void *event) +_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) { if (inwin) { @@ -109,7 +109,7 @@ _screenshot_hack_cb(void *data) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *o; diff --git a/src/examples/elementary/label_example_01.c b/src/examples/elementary/label_example_01.c index 03d3f78a23..fcec38e416 100644 --- a/src/examples/elementary/label_example_01.c +++ b/src/examples/elementary/label_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *label, *label2, *label3, *label4, *label5, *label6; diff --git a/src/examples/elementary/layout_example_01.c b/src/examples/elementary/layout_example_01.c index dae97d760f..48bd3ad5a6 100644 --- a/src/examples/elementary/layout_example_01.c +++ b/src/examples/elementary/layout_example_01.c @@ -11,7 +11,7 @@ static int _box_buttons = 0; static void -_tbl_btn_cb(void *data, Evas_Object *btn, void *event_info) +_tbl_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED) { Evas_Object *layout = data; @@ -20,7 +20,7 @@ _tbl_btn_cb(void *data, Evas_Object *btn, void *event_info) } static void -_box_btn_cb(void *data, Evas_Object *btn, void *event_info) +_box_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED) { Evas_Object *layout = data; Evas_Object *item; @@ -38,7 +38,7 @@ _box_btn_cb(void *data, Evas_Object *btn, void *event_info) } static void -_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) +_swallow_btn_cb(void *data, Evas_Object *btn EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *layout = data; Evas_Object *item; @@ -50,7 +50,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *icon, *icon2, *bt, *bt2, *layout; Evas_Object *clk; diff --git a/src/examples/elementary/layout_example_02.c b/src/examples/elementary/layout_example_02.c index 9fe9a6f93b..2a203e9d46 100644 --- a/src/examples/elementary/layout_example_02.c +++ b/src/examples/elementary/layout_example_02.c @@ -15,7 +15,7 @@ struct _App { }; static void -_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source) +_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source EINA_UNUSED) { struct _App *app = data; Evas_Object *icon = elm_object_part_content_get(o, "elm.swallow.content"); @@ -36,7 +36,7 @@ _signal_cb(void *data, Evas_Object *o, const char *emission, const char *source) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *layout, *icon; struct _App app; diff --git a/src/examples/elementary/layout_example_03.c b/src/examples/elementary/layout_example_03.c index 72693baa5e..5e12103bf7 100644 --- a/src/examples/elementary/layout_example_03.c +++ b/src/examples/elementary/layout_example_03.c @@ -9,7 +9,7 @@ static Eina_Bool _btn_large = EINA_FALSE; static void -_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) +_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED) { Evas_Object *layout = data; @@ -28,7 +28,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info) } static void -_size_changed_cb(void *data, Evas_Object *layout, const char *emission, const char *source) +_size_changed_cb(void *data EINA_UNUSED, Evas_Object *layout, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) { Evas_Object *edje; Evas_Coord w, h; @@ -40,7 +40,7 @@ _size_changed_cb(void *data, Evas_Object *layout, const char *emission, const ch } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *btn, *layout; char buf[PATH_MAX]; diff --git a/src/examples/elementary/layout_model_connect.c b/src/examples/elementary/layout_model_connect.c index 012832c45b..120ef5f852 100644 --- a/src/examples/elementary/layout_model_connect.c +++ b/src/examples/elementary/layout_model_connect.c @@ -48,7 +48,7 @@ _list_selected_cb(void *data EINA_UNUSED, const Efl_Event *event) static void -_update_cb(void *data, Evas_Object *obj, void *ev) +_update_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Layout_Model_Data *priv = data; @@ -80,16 +80,16 @@ _label_init(Evas_Object *win, Evas_Object *box, const char *text) static void -_signal_cb(void *data, - Evas_Object *obj EINA_UNUSED, - const char *emission, - const char *source) +_signal_cb(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + const char *emission, + const char *source) { - printf(">> Signal callback emission='%s' source='%s'\n", emission, source); + printf(">> Signal callback emission='%s' source='%s'\n", emission, source); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Layout_Model_Data *priv; Evas_Object *win, *panes, *bxr, *genlist; diff --git a/src/examples/elementary/list_example_01.c b/src/examples/elementary/list_example_01.c index c6f238e108..01b003f048 100644 --- a/src/examples/elementary/list_example_01.c +++ b/src/examples/elementary/list_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *li; unsigned int i; diff --git a/src/examples/elementary/list_example_02.c b/src/examples/elementary/list_example_02.c index 19c21b6b49..fdfc7cc666 100644 --- a/src/examples/elementary/list_example_02.c +++ b/src/examples/elementary/list_example_02.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *li; unsigned int i; diff --git a/src/examples/elementary/list_example_03.c b/src/examples/elementary/list_example_03.c index 4f840522bb..dd2c9a34e6 100644 --- a/src/examples/elementary/list_example_03.c +++ b/src/examples/elementary/list_example_03.c @@ -14,7 +14,7 @@ static int counter = 3; static void -_prepend_cb(void *data, Evas_Object *obj, void *event_info) +_prepend_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *list_it; Evas_Object *li = data; @@ -28,7 +28,7 @@ _prepend_cb(void *data, Evas_Object *obj, void *event_info) } static void -_add_cb(void *data, Evas_Object *obj, void *event_info) +_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *list_it; Evas_Object *li = data; @@ -42,7 +42,7 @@ _add_cb(void *data, Evas_Object *obj, void *event_info) } static void -_add_ic_cb(void *data, Evas_Object *obj, void *event_info) +_add_ic_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *list_it; Evas_Object *ic, *li = data; @@ -60,14 +60,14 @@ _add_ic_cb(void *data, Evas_Object *obj, void *event_info) } static void -_sel_cb(void *data, Evas_Object *obj, void *event_info) +_sel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Elm_Object_Item *list_it = event_info; printf("Selected label: %s\n", elm_object_item_text_get(list_it)); } static void -_add_func_cb(void *data, Evas_Object *obj, void *event_info) +_add_func_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *list_it; Evas_Object *li = data; @@ -81,7 +81,7 @@ _add_func_cb(void *data, Evas_Object *obj, void *event_info) } static void -_sel_data_cb(void *data, Evas_Object *obj, void *event_info) +_sel_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { char *content = data; Elm_Object_Item *list_it = event_info; @@ -90,13 +90,13 @@ _sel_data_cb(void *data, Evas_Object *obj, void *event_info) } static void -_free_data(void *data, Evas_Object *obj, void *event_info) +_free_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { free(data); } static void -_add_data_cb(void *data, Evas_Object *obj, void *event_info) +_add_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *list_it; Evas_Object *li = data; @@ -116,7 +116,7 @@ _add_data_cb(void *data, Evas_Object *obj, void *event_info) } static void -_del_cb(void *data, Evas_Object *obj, void *event_info) +_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item; Evas_Object *li = data; @@ -127,7 +127,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info) } static void -_unselect_cb(void *data, Evas_Object *obj, void *event_info) +_unselect_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item; Evas_Object *li = data; @@ -137,7 +137,7 @@ _unselect_cb(void *data, Evas_Object *obj, void *event_info) } static void -_print_cb(void *data, Evas_Object *obj, void *event_info) +_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { const Eina_List *l, *items; Elm_Object_Item *list_it; @@ -149,14 +149,14 @@ _print_cb(void *data, Evas_Object *obj, void *event_info) } static void -_clear_cb(void *data, Evas_Object *obj, void *event_info) +_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *li = data; elm_list_clear(li); } static void -_select_next_cb(void *data, Evas_Object *obj, void *event_info) +_select_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item, *next_item; Evas_Object *li = data; @@ -170,7 +170,7 @@ _select_next_cb(void *data, Evas_Object *obj, void *event_info) } static void -_insert_after_cb(void *data, Evas_Object *obj, void *event_info) +_insert_after_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item, *list_it; Evas_Object *li = data; @@ -188,7 +188,7 @@ _insert_after_cb(void *data, Evas_Object *obj, void *event_info) } static void -_select_prev_cb(void *data, Evas_Object *obj, void *event_info) +_select_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item, *prev_item; Evas_Object *li = data; @@ -202,7 +202,7 @@ _select_prev_cb(void *data, Evas_Object *obj, void *event_info) } static void -_insert_before_cb(void *data, Evas_Object *obj, void *event_info) +_insert_before_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item, *list_it; Evas_Object *li = data; @@ -220,7 +220,7 @@ _insert_before_cb(void *data, Evas_Object *obj, void *event_info) } static void -_set_separator_cb(void *data, Evas_Object *obj, void *event_info) +_set_separator_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item; Evas_Object *li = data; @@ -232,7 +232,7 @@ _set_separator_cb(void *data, Evas_Object *obj, void *event_info) } static void -_disable_cb(void *data, Evas_Object *obj, void *event_info) +_disable_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Object_Item *selected_item; Evas_Object *li = data; @@ -243,7 +243,7 @@ _disable_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *hbx, *li, *bt; diff --git a/src/examples/elementary/location_example_01.c b/src/examples/elementary/location_example_01.c index 71bf5dd7b4..a46bf75fc5 100644 --- a/src/examples/elementary/location_example_01.c +++ b/src/examples/elementary/location_example_01.c @@ -41,7 +41,7 @@ _position_changed(void *data, int ev_type, void *event) #endif EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { #ifdef ELM_ELOCATION Elocation_Address *address; diff --git a/src/examples/elementary/map_example_01.c b/src/examples/elementary/map_example_01.c index 49252c3a6d..26d1bc8d75 100644 --- a/src/examples/elementary/map_example_01.c +++ b/src/examples/elementary/map_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> static void -_bt_zoom_in(void *data, Evas_Object *obj, void *ev) +_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { int zoom; elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL); @@ -21,7 +21,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_out(void *data, Evas_Object *obj, void *ev) +_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { int zoom; elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL); @@ -30,13 +30,13 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FIT); } static void -_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FILL); } @@ -55,7 +55,7 @@ _nasty_hack(void *data) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *map, *box, *bt; diff --git a/src/examples/elementary/map_example_02.c b/src/examples/elementary/map_example_02.c index d2aea5acbf..fecd3ec70e 100644 --- a/src/examples/elementary/map_example_02.c +++ b/src/examples/elementary/map_example_02.c @@ -89,7 +89,7 @@ _box_get(Evas_Object *obj, Overlay_Data *data) } static void -_overlay_cb(void *data, Evas_Object *map, void *ev) +_overlay_cb(void *data EINA_UNUSED, Evas_Object *map, void *ev) { printf("Overlay clicked\n"); Elm_Map_Overlay *overlay = ev; @@ -105,7 +105,7 @@ _overlay_cb(void *data, Evas_Object *map, void *ev) } static void -_bt_zoom_in(void *data, Evas_Object *obj, void *ev) +_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Evas_Object *map = data; int zoom; @@ -116,7 +116,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_out(void *data, Evas_Object *obj, void *ev) +_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Evas_Object *map = data; int zoom; @@ -127,14 +127,14 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *map = data; elm_map_zoom_mode_set(map, ELM_MAP_ZOOM_MODE_AUTO_FIT); } static void -_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *map = data; elm_map_zoom_mode_set(map, ELM_MAP_ZOOM_MODE_AUTO_FILL); @@ -154,7 +154,7 @@ _nasty_hack(void *data) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *map, *box, *bt; Eina_List *ovls = NULL; diff --git a/src/examples/elementary/map_example_03.c b/src/examples/elementary/map_example_03.c index 84d541b875..59837d6726 100644 --- a/src/examples/elementary/map_example_03.c +++ b/src/examples/elementary/map_example_03.c @@ -23,7 +23,7 @@ typedef struct _Example_Data static Example_Data example_data; static void -_route_loaded(void *data, Evas_Object *obj, void *ev) +_route_loaded(void *data, Evas_Object *obj, void *ev EINA_UNUSED) { Example_Data *exam_data = data; @@ -32,7 +32,7 @@ _route_loaded(void *data, Evas_Object *obj, void *ev) } static void -_name_loaded(void *data, Evas_Object *obj, void *ev) +_name_loaded(void *data, Evas_Object *obj, void *ev EINA_UNUSED) { Example_Data *exam_data = data; Evas_Object *map = obj; @@ -51,7 +51,7 @@ _name_loaded(void *data, Evas_Object *obj, void *ev) } static void -_bt_route(void *data, Evas_Object *obj, void *ev) +_bt_route(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { Example_Data *exam_data = data; Evas_Object *map; @@ -67,7 +67,7 @@ _bt_route(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_in(void *data, Evas_Object *obj, void *ev) +_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { int zoom; elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL); @@ -76,7 +76,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_out(void *data, Evas_Object *obj, void *ev) +_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { int zoom; elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL); @@ -85,13 +85,13 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev) } static void -_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FIT); } static void -_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info) +_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FILL); } @@ -110,7 +110,7 @@ _nasty_hack(void *data) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *map, *box, *bt, *entry; diff --git a/src/examples/elementary/mapbuf_example.c b/src/examples/elementary/mapbuf_example.c index b8e85f72a4..711a226c1b 100644 --- a/src/examples/elementary/mapbuf_example.c +++ b/src/examples/elementary/mapbuf_example.c @@ -11,28 +11,28 @@ #include <Elementary.h> static void -_enabled_cb(void *data, Evas_Object *obj, void *event_info) +_enabled_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { Evas_Object *mb = data; elm_mapbuf_enabled_set(mb, elm_check_state_get(obj)); } static void -_alpha_cb(void *data, Evas_Object *obj, void *event_info) +_alpha_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { Evas_Object *mb = data; elm_mapbuf_alpha_set(mb, elm_check_state_get(obj)); } static void -_smooth_cb(void *data, Evas_Object *obj, void *event_info) +_smooth_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { Evas_Object *mb = data; elm_mapbuf_smooth_set(mb, elm_check_state_get(obj)); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *hbx, *tg, *ck, *mb, *tb, *ic; unsigned int i, j; diff --git a/src/examples/elementary/menu_example_01.c b/src/examples/elementary/menu_example_01.c index f15d6e756f..d3aa3144e0 100644 --- a/src/examples/elementary/menu_example_01.c +++ b/src/examples/elementary/menu_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> static void -_del_it(void *data, Evas_Object *obj, void *event_info) +_del_it(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { const Eina_List *l; Elm_Object_Item *menu_it = elm_menu_first_item_get(data); @@ -14,7 +14,7 @@ _del_it(void *data, Evas_Object *obj, void *event_info) } static void -_show(void *data, Evas *e, Evas_Object *obj, void *event_info) +_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Evas_Event_Mouse_Down *ev = event_info; elm_menu_move(data, ev->canvas.x, ev->canvas.y); @@ -22,7 +22,7 @@ _show(void *data, Evas *e, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *menu, *button, *rect; Elm_Object_Item *menu_it, *menu_it1; diff --git a/src/examples/elementary/naviframe_example.c b/src/examples/elementary/naviframe_example.c index 9fb55e7b2c..cf27df8e31 100644 --- a/src/examples/elementary/naviframe_example.c +++ b/src/examples/elementary/naviframe_example.c @@ -4,7 +4,7 @@ #include <Elementary.h> void -_btn_cb(void *data, Evas_Object *obj, void *event_info) +_btn_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *nf = data, *btn; if (!nf) return; @@ -17,7 +17,7 @@ _btn_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *nf, *btn; diff --git a/src/examples/elementary/notify_example_01.c b/src/examples/elementary/notify_example_01.c index 32248035a7..d8afba5d6c 100644 --- a/src/examples/elementary/notify_example_01.c +++ b/src/examples/elementary/notify_example_01.c @@ -6,7 +6,7 @@ static void _hide(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *notify, *content; @@ -65,7 +65,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_hide(void *data, Evas_Object *obj, void *event_info) +_hide(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { evas_object_hide(obj); } diff --git a/src/examples/elementary/panel_example_01.c b/src/examples/elementary/panel_example_01.c index 91e5593fc4..56c26e8652 100644 --- a/src/examples/elementary/panel_example_01.c +++ b/src/examples/elementary/panel_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *panel, *content; diff --git a/src/examples/elementary/panes_example.c b/src/examples/elementary/panes_example.c index bd990f3d9b..24adfd10e7 100644 --- a/src/examples/elementary/panes_example.c +++ b/src/examples/elementary/panes_example.c @@ -12,25 +12,25 @@ #include <Elementary.h> static void -_press(void *data, Evas_Object *obj, void *event_info) +_press(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("Pressed\n"); } static void -_unpress(void *data, Evas_Object *obj, void *event_info) +_unpress(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { printf("Unpressed, size : %f\n", elm_panes_content_left_size_get(obj)); } static void -_clicked(void *data, Evas_Object *obj, void *event_info) +_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("Clicked\n"); } static void -_clicked_double(void *data, Evas_Object *obj, void *event_info) +_clicked_double(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { static double size = 0.0; double tmp_size = 0.0; @@ -50,7 +50,7 @@ _clicked_double(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *panes, *panes_h, *bt; diff --git a/src/examples/elementary/photocam_example_01.c b/src/examples/elementary/photocam_example_01.c index 7826591fc1..cd37cfad7a 100644 --- a/src/examples/elementary/photocam_example_01.c +++ b/src/examples/elementary/photocam_example_01.c @@ -19,7 +19,7 @@ struct _Orient_Data }; EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *obj, *photocam, *menu; Orient_Data *orient_data; @@ -111,7 +111,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_bring_in(void *data, Evas_Object *obj, void *event_info) +_bring_in(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { int w, h; elm_photocam_image_size_get(obj, &w, &h); @@ -119,7 +119,7 @@ _bring_in(void *data, Evas_Object *obj, void *event_info) } static void -_fit(void *data, Evas_Object *obj, void *event_info) +_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { int x, y, w, h; elm_photocam_image_region_get(data, &x, &y, &w, &h); @@ -128,20 +128,20 @@ _fit(void *data, Evas_Object *obj, void *event_info) } static void -_unfit(void *data, Evas_Object *obj, void *event_info) +_unfit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_MANUAL); } static void -_zoom(void *data, Evas_Object *obj, void *event_info) +_zoom(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { double z = elm_slider_value_get(obj) * 8; elm_photocam_zoom_set(data, z); } static void -_orient(void *data, Evas_Object *obj, void *event_info) +_orient(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *mn = data; if (!mn) return; @@ -150,7 +150,7 @@ _orient(void *data, Evas_Object *obj, void *event_info) } static void -_orient_do(void *data, Evas_Object *obj, void *event_info) +_orient_do(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Orient_Data *orient_data = data; if (!orient_data) return; diff --git a/src/examples/elementary/popup_example_01.c b/src/examples/elementary/popup_example_01.c index 3457336a70..5e6170aa96 100644 --- a/src/examples/elementary/popup_example_01.c +++ b/src/examples/elementary/popup_example_01.c @@ -7,7 +7,7 @@ static void _block_clicked(void *data, Evas_Object *obj, void *event_info); static void _timeout(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *popup, *content; @@ -39,14 +39,14 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_block_clicked(void *data, Evas_Object *obj, - void *event_info) +_block_clicked(void *data EINA_UNUSED, Evas_Object *obj, + void *event_info EINA_UNUSED) { evas_object_hide(obj); } static void -_timeout(void *data, Evas_Object *obj, void *event_info) +_timeout(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { evas_object_hide(obj); } diff --git a/src/examples/elementary/popup_example_02.c b/src/examples/elementary/popup_example_02.c index 3f8cef06f9..07a049d509 100644 --- a/src/examples/elementary/popup_example_02.c +++ b/src/examples/elementary/popup_example_02.c @@ -6,7 +6,7 @@ static void _response_cb(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *popup, *btn1, *btn2, *btn3, *icon1; char buf[256]; @@ -70,8 +70,8 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_response_cb(void *data, Evas_Object *obj, - void *event_info) +_response_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { evas_object_del(data); } diff --git a/src/examples/elementary/popup_example_03.c b/src/examples/elementary/popup_example_03.c index d367081f92..2027e80449 100644 --- a/src/examples/elementary/popup_example_03.c +++ b/src/examples/elementary/popup_example_03.c @@ -7,7 +7,7 @@ static void _item_selected_cb(void *data, Evas_Object *obj, void *event_info); static void _response_cb(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *popup, *btn1, *btn2, *icon1; Elm_Object_Item *popup_it1; @@ -79,15 +79,15 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_item_selected_cb(void *data, Evas_Object *obj, +_item_selected_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { printf("popup item selected: %s\n", elm_object_item_text_get(event_info)); } static void -_response_cb(void *data, Evas_Object *obj, - void *event_info) +_response_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { evas_object_hide(data); } diff --git a/src/examples/elementary/prefs_example_01.c b/src/examples/elementary/prefs_example_01.c index a4c76de60d..ec591eb194 100644 --- a/src/examples/elementary/prefs_example_01.c +++ b/src/examples/elementary/prefs_example_01.c @@ -32,7 +32,7 @@ _elm_prefs_data_change(void *data) } static void -_page_saved_cb(void *data, Evas_Object *obj, void *event_info) +_page_saved_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { const char *page = event_info; @@ -40,7 +40,7 @@ _page_saved_cb(void *data, Evas_Object *obj, void *event_info) } static void -_page_loaded_cb(void *data, Evas_Object *obj, void *event_info) +_page_loaded_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { const char *page = event_info; @@ -48,7 +48,7 @@ _page_loaded_cb(void *data, Evas_Object *obj, void *event_info) } static void -_item_changed_cb(void *data, Evas_Object *obj, void *event_info) +_item_changed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { const char *item = event_info; @@ -56,7 +56,7 @@ _item_changed_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *prefs, *notify, *label; Elm_Prefs_Data *prefs_data; diff --git a/src/examples/elementary/prefs_example_02.c b/src/examples/elementary/prefs_example_02.c index b28403ba23..426214efb2 100644 --- a/src/examples/elementary/prefs_example_02.c +++ b/src/examples/elementary/prefs_example_02.c @@ -40,7 +40,7 @@ _elm_prefs_items_change(void *data) } static void -_action_cb(void *data, Evas_Object *obj, void *event_info) +_action_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *notify = data; Elm_Prefs_Data *prefs_data; @@ -57,7 +57,7 @@ _action_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *prefs, *notify, *label; Elm_Prefs_Data *prefs_data; diff --git a/src/examples/elementary/prefs_example_03.c b/src/examples/elementary/prefs_example_03.c index 0aca8663a1..88206d649f 100644 --- a/src/examples/elementary/prefs_example_03.c +++ b/src/examples/elementary/prefs_example_03.c @@ -44,7 +44,7 @@ _update(Evas_Object *prefs, Evas_Object *layout) } static void -_page_loaded_cb(void *data, Evas_Object *obj, void *event_info) +_page_loaded_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { Evas_Object *layout = data; @@ -64,7 +64,7 @@ _item_changed_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *prefs, *layout; Elm_Prefs_Data *prefs_data; diff --git a/src/examples/elementary/progressbar_example.c b/src/examples/elementary/progressbar_example.c index accd1de1c7..f6d2538dc0 100644 --- a/src/examples/elementary/progressbar_example.c +++ b/src/examples/elementary/progressbar_example.c @@ -31,7 +31,7 @@ typedef struct Progressbar_Example static Progressbar_Example example_data; static Eina_Bool -_progressbar_example_value_set(void *data) +_progressbar_example_value_set(void *data EINA_UNUSED) { double progress; @@ -53,9 +53,9 @@ _progressbar_example_value_set(void *data) } static void -_progressbar_example_start(void *data, - Evas_Object *obj, - void *event_info) +_progressbar_example_start(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { elm_progressbar_pulse(example_data.pb2, EINA_TRUE); elm_progressbar_pulse(example_data.pb6, EINA_TRUE); @@ -71,9 +71,9 @@ _progressbar_example_start(void *data, /* end of show */ static void -_progressbar_example_stop(void *data, - Evas_Object *obj, - void *event_info) +_progressbar_example_stop(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { elm_progressbar_pulse(example_data.pb2, EINA_FALSE); elm_progressbar_pulse(example_data.pb6, EINA_FALSE); @@ -107,7 +107,7 @@ _progress_format_free(char *str) static void _on_changed(void *data, Evas_Object *obj, - void *event_info) + void *event_info EINA_UNUSED) { static char buf[30]; static time_t tstart = 0; @@ -138,17 +138,17 @@ _on_changed(void *data, } static void -_on_done(void *data, - Evas_Object *obj, - void *event_info) +_on_done(void *data EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) { _progressbar_example_stop(NULL, NULL, NULL); elm_exit(); } EAPI_MAIN int -elm_main(int argc, - char **argv) +elm_main(int argc EINA_UNUSED, + char **argv EINA_UNUSED) { Evas_Object *win, *pb, *bx, *hbx, *bt, *bt_bx, *ic1, *ic2, *label; char buf[PATH_MAX]; diff --git a/src/examples/elementary/radio_example_01.c b/src/examples/elementary/radio_example_01.c index 26c42c59b5..dadd243871 100644 --- a/src/examples/elementary/radio_example_01.c +++ b/src/examples/elementary/radio_example_01.c @@ -8,7 +8,7 @@ static int val = 1; static void _cb(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *radio, *group, *ic; @@ -81,7 +81,7 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_cb(void *data, Evas_Object *obj, void *event_info) +_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("val is now: %d\n", val); } diff --git a/src/examples/elementary/radio_example_02.c b/src/examples/elementary/radio_example_02.c index 274a944b7a..2ff86d6ee8 100644 --- a/src/examples/elementary/radio_example_02.c +++ b/src/examples/elementary/radio_example_02.c @@ -10,7 +10,7 @@ static void _cb2(void *data, Evas_Object *obj, void *event_info); static void _cb3(void *data, Evas_Object *obj, void *event_info); EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *radio, *group, *ic; @@ -75,19 +75,19 @@ elm_main(int argc, char **argv) ELM_MAIN() static void -_cb1(void *data, Evas_Object *obj, void *event_info) +_cb1(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("Radio 1 Clicked: val is now: %d\n", val); } static void -_cb2(void *data, Evas_Object *obj, void *event_info) +_cb2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("Radio 2 Clicked: val is now: %d\n", val); } static void -_cb3(void *data, Evas_Object *obj, void *event_info) +_cb3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { printf("Radio 3 Clicked: val is now: %d\n", val); } diff --git a/src/examples/elementary/scroller_example_01.c b/src/examples/elementary/scroller_example_01.c index 1000fc10d7..eb37ab8868 100644 --- a/src/examples/elementary/scroller_example_01.c +++ b/src/examples/elementary/scroller_example_01.c @@ -104,7 +104,7 @@ static const char *text = "Lorem ipsum dolor sit amet, consectetur adipiscing el Nam scelerisque nulla ut neque tempor blandit volutpat nisl vehicula. Nam orci enim, luctus ut venenatis et, egestas id nunc. Phasellus risus sem, scelerisque sed vestibulum a, aliquam at sem. Sed venenatis tristique nisi id eleifend. Morbi urna tellus, cursus ac porttitor rhoncus, commodo at mi. Mauris ac magna nisi. Maecenas rutrum lobortis sapien, sed dapibus neque hendrerit a. Aliquam fringilla lectus nec arcu tempor et molestie dui suscipit. Proin et felis velit, vel pellentesque ligula. Donec tempus, mi at mollis porttitor, mauris urna congue elit, at varius nisi elit et est. Quisque eu libero lorem, eget tincidunt velit. Nullam hendrerit metus quis urna adipiscing quis tristique tortor condimentum. Integer iaculis scelerisque sem, vitae consectetur lorem facilisis eu. Phasellus consectetur blandit auctor. Morbi eleifend mollis ipsum, id facilisis leo euismod ut. Nunc id est tellus."; EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *label, *scroller; diff --git a/src/examples/elementary/segment_control_example.c b/src/examples/elementary/segment_control_example.c index df631dcbbe..4ea4d6a4a1 100644 --- a/src/examples/elementary/segment_control_example.c +++ b/src/examples/elementary/segment_control_example.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *sc, *ic; Elm_Object_Item *seg_it; diff --git a/src/examples/elementary/separator_example_01.c b/src/examples/elementary/separator_example_01.c index 357decf8b8..2868b62775 100644 --- a/src/examples/elementary/separator_example_01.c +++ b/src/examples/elementary/separator_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *rect, *separator; diff --git a/src/examples/elementary/slider_example.c b/src/examples/elementary/slider_example.c index 53fdc922f7..31caf7c619 100644 --- a/src/examples/elementary/slider_example.c +++ b/src/examples/elementary/slider_example.c @@ -12,14 +12,14 @@ #include <Elementary.h> static void -_changed_cb(void *data, Evas_Object *obj, void *event_info) +_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { double val = elm_slider_value_get(obj); printf("Changed to %1.2f\n", val); } static void -_delay_changed_cb(void *data, Evas_Object *obj, void *event_info) +_delay_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { double val = elm_slider_value_get(obj); printf("Delay changed to %1.2f\n", val); @@ -40,7 +40,7 @@ _indicator_free(char *str) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *sl, *ic; diff --git a/src/examples/elementary/slideshow_example.c b/src/examples/elementary/slideshow_example.c index 5687b9e79a..6f516746a7 100644 --- a/src/examples/elementary/slideshow_example.c +++ b/src/examples/elementary/slideshow_example.c @@ -17,59 +17,59 @@ static Evas_Object *slideshow, *bt_start, *bt_stop; static Elm_Slideshow_Item_Class itc; static void -_notify_show(void *data, Evas *e, Evas_Object *obj, void *event_info) +_notify_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { evas_object_show(data); } /* jump to next item, cyclically */ static void -_next(void *data, Evas_Object *obj, void *event_info) +_next(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_next(data); } static void -_previous(void *data, Evas_Object *obj, void *event_info) +_previous(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_previous(data); } static void -_first(void *data, Evas_Object *obj, void *event_info) +_first(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_item_show(data); } static void -_last(void *data, Evas_Object *obj, void *event_info) +_last(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_item_show(data); } static void -_mouse_in_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_mouse_in_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_notify_timeout_set(data, 0.0); evas_object_show(data); } static void -_mouse_out_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_mouse_out_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_notify_timeout_set(data, 3.0); } /* transition changed */ static void -_transition_select(void *data, Evas_Object *obj, void *event_info) +_transition_select(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { elm_slideshow_transition_set(slideshow, data); elm_object_text_set(obj, data); } static void -_layout_select(void *data, Evas_Object *obj, void *event_info) +_layout_select(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { elm_slideshow_layout_set(slideshow, data); elm_object_text_set(obj, data); @@ -77,7 +77,7 @@ _layout_select(void *data, Evas_Object *obj, void *event_info) /* start the show! */ static void -_start(void *data, Evas_Object *obj, void *event_info) +_start(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data)); @@ -86,7 +86,7 @@ _start(void *data, Evas_Object *obj, void *event_info) } static void -_stop(void *data, Evas_Object *obj, void *event_info) +_stop(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { elm_slideshow_timeout_set(slideshow, 0.0); elm_object_disabled_set(bt_start, EINA_FALSE); @@ -95,7 +95,7 @@ _stop(void *data, Evas_Object *obj, void *event_info) /* slideshow transition time has changed */ static void -_spin(void *data, Evas_Object *obj, void *event_info) +_spin(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { if (elm_slideshow_timeout_get(slideshow) > 0) elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data)); @@ -129,7 +129,7 @@ _cmp_func(const void *data1, const void *data2) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *notify, *bx, *bt, *hv, *spin; Elm_Object_Item *slide_first = NULL, *slide_last = NULL, *slide_it = NULL; diff --git a/src/examples/elementary/spinner_example.c b/src/examples/elementary/spinner_example.c index 50a96dcf3d..a9467d327e 100644 --- a/src/examples/elementary/spinner_example.c +++ b/src/examples/elementary/spinner_example.c @@ -12,19 +12,19 @@ #include <Elementary.h> static void -_changed_cb(void *data, Evas_Object *obj, void *event_info) +_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { printf("Value changed to %0.f\n", elm_spinner_value_get(obj)); } static void -_delay_changed_cb(void *data, Evas_Object *obj, void *event_info) +_delay_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) { printf("Value delay changed to %0.f\n", elm_spinner_value_get(obj)); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *sp; diff --git a/src/examples/elementary/table_example_01.c b/src/examples/elementary/table_example_01.c index a91ffe1bdb..7209eccd34 100644 --- a/src/examples/elementary/table_example_01.c +++ b/src/examples/elementary/table_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *label, *table; diff --git a/src/examples/elementary/table_example_02.c b/src/examples/elementary/table_example_02.c index 211fc2e773..9d066bf422 100644 --- a/src/examples/elementary/table_example_02.c +++ b/src/examples/elementary/table_example_02.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *rect, *table; diff --git a/src/examples/elementary/theme_example_01.c b/src/examples/elementary/theme_example_01.c index 6fc7c113c6..1cbe9851a7 100644 --- a/src/examples/elementary/theme_example_01.c +++ b/src/examples/elementary/theme_example_01.c @@ -6,7 +6,7 @@ char edj_path[PATH_MAX]; static void -btn_extension_click_cb(void *data, Evas_Object *btn, void *ev) +btn_extension_click_cb(void *data EINA_UNUSED, Evas_Object *btn, void *ev EINA_UNUSED) { const char *lbl = elm_object_text_get(btn); @@ -23,7 +23,7 @@ btn_extension_click_cb(void *data, Evas_Object *btn, void *ev) } static void -btn_style_click_cb(void *data, Evas_Object *btn, void *ev) +btn_style_click_cb(void *data EINA_UNUSED, Evas_Object *btn, void *ev EINA_UNUSED) { const char *styles[] = { "chucknorris", @@ -37,7 +37,7 @@ btn_style_click_cb(void *data, Evas_Object *btn, void *ev) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *btn; diff --git a/src/examples/elementary/theme_example_02.c b/src/examples/elementary/theme_example_02.c index 0dcf1729e0..26822e81a6 100644 --- a/src/examples/elementary/theme_example_02.c +++ b/src/examples/elementary/theme_example_02.c @@ -6,7 +6,7 @@ char edj_path[PATH_MAX]; static void -_btn_clicked_cb(void *data, Evas_Object *obj, void *ev) +_btn_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) { static int loaded = 1; if (loaded) @@ -17,7 +17,7 @@ _btn_clicked_cb(void *data, Evas_Object *obj, void *ev) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *btn; diff --git a/src/examples/elementary/thumb_example_01.c b/src/examples/elementary/thumb_example_01.c index a09046409c..4ec7b27a4a 100644 --- a/src/examples/elementary/thumb_example_01.c +++ b/src/examples/elementary/thumb_example_01.c @@ -4,25 +4,28 @@ #include <Elementary.h> static void -_generation_started_cb(void *data, Evas_Object *o, void *event_info) +_generation_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, + void *event_info EINA_UNUSED) { printf("thumbnail generation started.\n"); } static void -_generation_finished_cb(void *data, Evas_Object *o, void *event_info) +_generation_finished_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, + void *event_info EINA_UNUSED) { printf("thumbnail generation finished.\n"); } static void -_generation_error_cb(void *data, Evas_Object *o, void *event_info) +_generation_error_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, + void *event_info EINA_UNUSED) { printf("thumbnail generation error.\n"); } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win; Evas_Object *thumb; diff --git a/src/examples/elementary/toolbar_example_01.c b/src/examples/elementary/toolbar_example_01.c index 75499b20fd..ecbe76e8be 100644 --- a/src/examples/elementary/toolbar_example_01.c +++ b/src/examples/elementary/toolbar_example_01.c @@ -12,21 +12,21 @@ #include <Elementary.h> static void -_item_1_pressed(void *data, Evas_Object *obj, void *event_info) +_item_1_pressed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *bt = data; elm_object_text_set(bt, "Print Document"); } static void -_item_2_pressed(void *data, Evas_Object *obj, void *event_info) +_item_2_pressed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *bt = data; elm_object_text_set(bt, "Create new folder"); } static void -_item_3_pressed(void *data, Evas_Object *obj, void *event_info) +_item_3_pressed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { /* This function won't be called because we disabled item that call it */ Evas_Object *bt = data; @@ -34,7 +34,7 @@ _item_3_pressed(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *tb, *bt; Elm_Object_Item *tb_it; diff --git a/src/examples/elementary/toolbar_example_02.c b/src/examples/elementary/toolbar_example_02.c index 74fd633ebb..48cb264f4d 100644 --- a/src/examples/elementary/toolbar_example_02.c +++ b/src/examples/elementary/toolbar_example_02.c @@ -12,7 +12,7 @@ #include <Elementary.h> static void -_item_pressed(void *data, Evas_Object *obj, void *event_info) +_item_pressed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Elm_Object_Item *tb_it = event_info; elm_toolbar_item_state_set(tb_it, elm_toolbar_item_state_next(tb_it)); @@ -20,7 +20,7 @@ _item_pressed(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *tb, *bt; Elm_Object_Item *tb_it; diff --git a/src/examples/elementary/toolbar_example_03.c b/src/examples/elementary/toolbar_example_03.c index 8578d8bfc5..252b8abd2d 100644 --- a/src/examples/elementary/toolbar_example_03.c +++ b/src/examples/elementary/toolbar_example_03.c @@ -12,7 +12,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bx, *tb, *bt, *menu; Elm_Object_Item *tb_it; diff --git a/src/examples/elementary/track_example_01.c b/src/examples/elementary/track_example_01.c index e150476e48..4d71236801 100644 --- a/src/examples/elementary/track_example_01.c +++ b/src/examples/elementary/track_example_01.c @@ -12,7 +12,7 @@ #include <Elementary.h> void -item_select_cb(void *data, Evas_Object *obj, void *event_info) +item_select_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Evas_Coord x, y, w, h; Eina_Bool visible; @@ -28,7 +28,7 @@ item_select_cb(void *data, Evas_Object *obj, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *li; unsigned int i; diff --git a/src/examples/elementary/transit_example_01.c b/src/examples/elementary/transit_example_01.c index 95ff37bd0d..32c4e05855 100644 --- a/src/examples/elementary/transit_example_01.c +++ b/src/examples/elementary/transit_example_01.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bt; Elm_Transit *trans; diff --git a/src/examples/elementary/transit_example_02.c b/src/examples/elementary/transit_example_02.c index 5eb03d630a..cf08eb7b86 100644 --- a/src/examples/elementary/transit_example_02.c +++ b/src/examples/elementary/transit_example_02.c @@ -4,7 +4,7 @@ #include <Elementary.h> EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bt, *bt2, *bt3, *bt4; Elm_Transit *trans, *trans2, *trans3, *trans4; 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 } static void -_transit_start(void *data, Evas_Object *o, void *event_info) +_transit_start(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Transit *trans = NULL; int i; @@ -130,14 +130,14 @@ _transit_start(void *data, Evas_Object *o, void *event_info) /* callback useful just to know whether we can receive events from the * object or not */ static void -_object_clicked(void *data, Evas_Object *o, void *event_info) +_object_clicked(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { printf("object clicked!\n"); } /* update our context with the given value for repeat count */ static void -_cb_repeat_changed(void *data, Evas_Object *obj, void *event) +_cb_repeat_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) { int *repeat_cnt = data; @@ -146,7 +146,7 @@ _cb_repeat_changed(void *data, Evas_Object *obj, void *event) /* update our context with the given tween mode for the transition */ static void -_cb_tween_changed(void *data, Evas_Object *obj, void *event) +_cb_tween_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED) { Elm_Transit_Tween_Mode *mode = data; double val = 0.0; @@ -163,7 +163,7 @@ _cb_tween_changed(void *data, Evas_Object *obj, void *event) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn; Evas_Object *cbox, *dummy, *spinner; diff --git a/src/examples/elementary/transit_example_04.c b/src/examples/elementary/transit_example_04.c index 2f1442320f..1a541d426f 100644 --- a/src/examples/elementary/transit_example_04.c +++ b/src/examples/elementary/transit_example_04.c @@ -54,7 +54,7 @@ _checkbox_transition_add(Evas_Object *box, const char *label, Eina_Bool *checked } static void -_transit_start(void *data, Evas_Object *o, void *event_info) +_transit_start(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Elm_Transit *trans = NULL; Eina_List *objs = data, *l; @@ -79,7 +79,7 @@ _transit_start(void *data, Evas_Object *o, void *event_info) } EAPI_MAIN int -elm_main(int argc, char **argv) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *icon, *box, *hbox, *btn, *rect; Eina_List *objs = NULL; diff --git a/src/examples/elementary/web_example_01.c b/src/examples/elementary/web_example_01.c index fea19c1807..82b53053dd 100644 --- a/src/examples/elementary/web_example_01.c +++ b/src/examples/elementary/web_example_01.c @@ -11,7 +11,7 @@ #define URL "http://www.enlightenment.org" EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *web; diff --git a/src/examples/elementary/web_example_02.c b/src/examples/elementary/web_example_02.c index d440afb941..9cffc3f854 100644 --- a/src/examples/elementary/web_example_02.c +++ b/src/examples/elementary/web_example_02.c @@ -74,7 +74,7 @@ tab_current_set(Tab_Data *td) } static void -_tab_clicked_cb(void *data, Evas_Object *obj, void *event_info) +_tab_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { Tab_Data *td = data; /* the first toolbar_item_append() calls the select callback before the item @@ -85,7 +85,7 @@ _tab_clicked_cb(void *data, Evas_Object *obj, void *event_info) } static void -_title_changed_cb(void *data, Evas_Object *obj, void *event_info) +_title_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { Tab_Data *td = data; const char *title = event_info; @@ -97,7 +97,7 @@ _title_changed_cb(void *data, Evas_Object *obj, void *event_info) } static void -_url_changed_cb(void *data, Evas_Object *obj, void *event_info) +_url_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { Tab_Data *td = data; const char *url = event_info; @@ -110,7 +110,7 @@ _url_changed_cb(void *data, Evas_Object *obj, void *event_info) } static void -_web_free_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_web_free_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Tab_Data *td = data; @@ -121,7 +121,7 @@ _web_free_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_tb_item_del_cb(void *data, Evas_Object *obj, void *event_info) +_tb_item_del_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { Tab_Data *td = data; if (!td->app->exiting && !elm_toolbar_selected_item_get(obj)) @@ -211,7 +211,7 @@ tab_url_set(Tab_Data *td, const char *url) } static void -_url_entry_activated_cb(void *data, Evas_Object *obj, void *event_info) +_url_entry_activated_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { App_Data *ad = data; Tab_Data *td; @@ -226,7 +226,7 @@ _url_entry_activated_cb(void *data, Evas_Object *obj, void *event_info) } static void -_nav_back_cb(void *data, Evas_Object *obj, void *event_info) +_nav_back_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; @@ -234,7 +234,7 @@ _nav_back_cb(void *data, Evas_Object *obj, void *event_info) } static void -_nav_refresh_cb(void *data, Evas_Object *obj, void *event_info) +_nav_refresh_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { App_Data *ad = data; const Evas_Modifier *mods = evas_key_modifier_get(evas_object_evas_get(obj)); @@ -246,7 +246,7 @@ _nav_refresh_cb(void *data, Evas_Object *obj, void *event_info) } static void -_nav_fwd_cb(void *data, Evas_Object *obj, void *event_info) +_nav_fwd_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; @@ -254,7 +254,7 @@ _nav_fwd_cb(void *data, Evas_Object *obj, void *event_info) } static void -_close_tab_cb(void *data, Evas_Object *obj, void *event_info) +_close_tab_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; @@ -264,7 +264,7 @@ _close_tab_cb(void *data, Evas_Object *obj, void *event_info) } static void -_add_tab_cb(void *data, Evas_Object *obj, void *event_info) +_add_tab_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; tab_add(ad); @@ -272,7 +272,8 @@ _add_tab_cb(void *data, Evas_Object *obj, void *event_info) } static Evas_Object * -_web_create_window_cb(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *wf) +_web_create_window_cb(void *data, Evas_Object *obj EINA_UNUSED, + Eina_Bool js EINA_UNUSED, const Elm_Web_Window_Features *wf EINA_UNUSED) { App_Data *ad = data; Tab_Data *td; @@ -282,20 +283,20 @@ _web_create_window_cb(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_ } static void -_win_del_request_cb(void *data, Evas_Object *obj, void *event_info) +_win_del_request_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; ad->exiting = EINA_TRUE; } static void -_win_free_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_win_free_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { free(data); } static void -_search_entry_changed_cb(void *data, Evas_Object *obj, void *event_info) +_search_entry_changed_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { App_Data *ad = data; const char *text; @@ -309,7 +310,7 @@ _search_entry_changed_cb(void *data, Evas_Object *obj, void *event_info) } static void -_search_entry_activate_cb(void *data, Evas_Object *obj, void *event_info) +_search_entry_activate_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { App_Data *ad = data; const char *text; @@ -320,7 +321,7 @@ _search_entry_activate_cb(void *data, Evas_Object *obj, void *event_info) } static void -_search_next_cb(void *data, Evas_Object *obj, void *event_info) +_search_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; const char *text; @@ -331,7 +332,7 @@ _search_next_cb(void *data, Evas_Object *obj, void *event_info) } static void -_search_prev_cb(void *data, Evas_Object *obj, void *event_info) +_search_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; const char *text; @@ -342,14 +343,14 @@ _search_prev_cb(void *data, Evas_Object *obj, void *event_info) } static void -_search_close_cb(void *data, Evas_Object *obj, void *event_info) +_search_close_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; evas_object_del(ad->search_box); } static void -_search_box_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_search_box_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { App_Data *ad = data; ad->search_box = NULL; @@ -357,7 +358,7 @@ _search_box_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_win_search_trigger_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_win_search_trigger_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Evas_Event_Key_Down *ev = event_info; App_Data *ad = data; @@ -460,7 +461,7 @@ default_content_set(Evas_Object *web) } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *box, *box2, *btn, *ic, *url_bar, *naviframe, *tabs, *web; Evas *e; diff --git a/src/examples/elementary/win_example.c b/src/examples/elementary/win_example.c index 9d76721c8d..26cd59cc90 100644 --- a/src/examples/elementary/win_example.c +++ b/src/examples/elementary/win_example.c @@ -10,67 +10,67 @@ static Evas_Object *win2; static void -_btn_activate_cb(void *data, Evas_Object *obj, void *event) +_btn_activate_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { elm_win_activate(data); } static void -_btn_lower_cb(void *data, Evas_Object *obj, void *event) +_btn_lower_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { elm_win_lower(data); } static void -_btn_raise_cb(void *data, Evas_Object *obj, void *event) +_btn_raise_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { elm_win_raise(data); } static void -_btn_borderless_cb(void *data, Evas_Object *obj, void *event) +_btn_borderless_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_borderless_get(data); elm_win_borderless_set(data, !flag); } static void -_btn_shaped_cb(void *data, Evas_Object *obj, void *event) +_btn_shaped_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_shaped_get(data); elm_win_shaped_set(data, !flag); } static void -_btn_alpha_cb(void *data, Evas_Object *obj, void *event) +_btn_alpha_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_alpha_get(data); elm_win_alpha_set(data, !flag); } static void -_btn_fullscreen_cb(void *data, Evas_Object *obj, void *event) +_btn_fullscreen_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_fullscreen_get(data); elm_win_fullscreen_set(data, !flag); } static void -_btn_maximized_cb(void *data, Evas_Object *obj, void *event) +_btn_maximized_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_maximized_get(data); elm_win_maximized_set(data, !flag); } static void -_btn_iconified_cb(void *data, Evas_Object *obj, void *event) +_btn_iconified_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_iconified_get(data); elm_win_iconified_set(data, !flag); } static void -_btn_rotation_cb(void *data, Evas_Object *obj, void *event) +_btn_rotation_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { int angle = elm_win_rotation_get(data); angle = (angle + 90) % 360; @@ -78,7 +78,7 @@ _btn_rotation_cb(void *data, Evas_Object *obj, void *event) } static void -_btn_rotation_resize_cb(void *data, Evas_Object *obj, void *event) +_btn_rotation_resize_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { int angle = elm_win_rotation_get(data); angle = (angle + 90) % 360; @@ -86,26 +86,26 @@ _btn_rotation_resize_cb(void *data, Evas_Object *obj, void *event) } static void -_btn_sticky_cb(void *data, Evas_Object *obj, void *event) +_btn_sticky_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Eina_Bool flag = elm_win_sticky_get(data); elm_win_sticky_set(data, !flag); } static void -_yes_quit_cb(void *data, Evas_Object *obj, void *event) +_yes_quit_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { elm_exit(); } static void -_no_quit_cb(void *data, Evas_Object *obj, void *event) +_no_quit_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { evas_object_del(data); } static void -_main_win_del_cb(void *data, Evas_Object *obj, void *event) +_main_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) { Evas_Object *msg, *box, *box2, *btn, *lbl, *sep; @@ -155,7 +155,7 @@ _main_win_del_cb(void *data, Evas_Object *obj, void *event) } static void -_force_focus_cb(void *data, Evas_Object *obj, void *event) +_force_focus_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { #ifdef HAVE_ELEMENTARY_X Ecore_X_Window xwin = elm_win_xwindow_get(data); @@ -164,7 +164,7 @@ _force_focus_cb(void *data, Evas_Object *obj, void *event) } static void -_win_focused_cb(void *data, Evas_Object *obj, void *event) +_win_focused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { const char *name = data; printf("Window focused: %s\n", name); @@ -179,7 +179,7 @@ key_down() } EAPI_MAIN int -elm_main(int argc, char *argv[]) +elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *bigbox, *box, *btn, *o; char buf[256]; diff --git a/src/examples/eolian_cxx/colourable.c b/src/examples/eolian_cxx/colourable.c index 141bd55c1b..001665f956 100644 --- a/src/examples/eolian_cxx/colourable.c +++ b/src/examples/eolian_cxx/colourable.c @@ -51,7 +51,7 @@ _ns_colourable_efl_object_destructor(Eo *obj, Colourable_Data *self EINA_UNUSED) } void -_ns_colourable_rgb_24bits_constructor(Eo *obj, Colourable_Data *self, int rgb) +_ns_colourable_rgb_24bits_constructor(Eo *obj EINA_UNUSED, Colourable_Data *self, int rgb) { if(!_ns_colourable_impl_logdomain) { diff --git a/src/examples/eolian_cxx/colourablesquare.c b/src/examples/eolian_cxx/colourablesquare.c index f67d3e2ff1..a6ea21359e 100644 --- a/src/examples/eolian_cxx/colourablesquare.c +++ b/src/examples/eolian_cxx/colourablesquare.c @@ -25,7 +25,7 @@ struct _ColourableSquare_Data typedef struct _ColourableSquare_Data ColourableSquare_Data; static void -_ns_colourablesquare_size_constructor(Eo *obj, ColourableSquare_Data *self, int size) +_ns_colourablesquare_size_constructor(Eo *obj EINA_UNUSED, ColourableSquare_Data *self, int size) { if(!_ns_colourablesquare_impl_logdomain) { diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c index 77d4df9b1b..258ca41737 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) else { efl_image_border_set(d.clipper_border, 3, 3, 3, 3); - efl_image_border_center_fill_set(d.clipper_border, EVAS_BORDER_FILL_NONE); + efl_image_border_center_fill_set(d.clipper_border, EFL_GFX_BORDER_FILL_MODE_NONE); efl_gfx_position_set(d.clipper_border, (WIDTH / 4) -3, (HEIGHT / 4) - 3); efl_gfx_size_set(d.clipper_border, (WIDTH / 2) + 6, (HEIGHT / 2) + 6); 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 26f8082ca4..343842ff97 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, if (strcmp(ev->key, "h") == 0) /* print help */ { - printf(commands); + printf("%s\n", commands); return; } @@ -771,7 +771,7 @@ main(void) iface->example_func(d.smt); } - printf(commands); + printf("%s\n", commands); ecore_main_loop_begin(); ecore_evas_free(d.ee); diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c index 148393f4ca..444e2b2805 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, if (strcmp(ev->key, "h") == 0) /* print help */ { - printf(commands); + printf("%s\n", commands); return; } @@ -322,7 +322,7 @@ main(void) evas_object_event_callback_add( d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL); - printf(commands); + printf("%s\n", commands); ecore_main_loop_begin(); ecore_evas_shutdown(); diff --git a/src/examples/evas/evas-textblock-obstacles.c b/src/examples/evas/evas-textblock-obstacles.c index 91f5d416db..a6df1e6624 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, if (strcmp(ev->key, "h") == 0) /* print help */ { - printf(commands); + printf("%s\n", commands); return; } @@ -293,7 +293,7 @@ main(void) evas_object_show(d.t_data.obs[0]); evas_object_show(d.t_data.obs[1]); - printf(commands); + printf("%s\n", commands); ecore_main_loop_begin(); evas_textblock_style_free(d.st); |