diff --git a/src/examples/ecore/ecore_animator_example.c b/src/examples/ecore/ecore_animator_example.c index eb9e151ce0..91c2aa328f 100644 --- a/src/examples/ecore/ecore_animator_example.c +++ b/src/examples/ecore/ecore_animator_example.c @@ -12,7 +12,7 @@ static Eina_Bool _freeze_third_anim(void *data); static Eina_Bool _thaw_third_anim(void *data); int -main(int argc, char *argv[]) +main(void) { Evas_Object *rect, *bg, *rect2; Ecore_Evas *ee; diff --git a/src/examples/ecore/ecore_client_bench.c b/src/examples/ecore/ecore_client_bench.c index f4ef3ed615..3350aaea6d 100644 --- a/src/examples/ecore/ecore_client_bench.c +++ b/src/examples/ecore/ecore_client_bench.c @@ -16,7 +16,7 @@ static int add = 0; static int del = 0; Eina_Bool -_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED) { ++add; printf("Connection #%i!\n", add); @@ -27,7 +27,7 @@ _add(void *data, int type, Ecore_Con_Event_Server_Add *ev) } Eina_Bool -_del(void *data, int type, Ecore_Con_Event_Server_Add *ev) +_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED) { ++del; printf("Connection lost! #%i!\n", del); @@ -36,7 +36,7 @@ _del(void *data, int type, Ecore_Con_Event_Server_Add *ev) } static void -_spawn(void *data) +_spawn(void *data EINA_UNUSED) { int x; diff --git a/src/examples/ecore/ecore_con_client_example.c b/src/examples/ecore/ecore_con_client_example.c index 580289fc29..24c04847f1 100644 --- a/src/examples/ecore/ecore_con_client_example.c +++ b/src/examples/ecore/ecore_con_client_example.c @@ -24,7 +24,7 @@ tls_log_func(int level, const char *str) #endif Eina_Bool -_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev) { printf("Server with ip %s connected!\n", ecore_con_server_ip_get(ev->server)); ecore_con_server_send(ev->server, "hello!", 6); @@ -34,7 +34,7 @@ _add(void *data, int type, Ecore_Con_Event_Server_Add *ev) } Eina_Bool -_del(void *data, int type, Ecore_Con_Event_Server_Del *ev) +_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Del *ev) { printf("Lost server with ip %s!\n", ecore_con_server_ip_get(ev->server)); ecore_main_loop_quit(); @@ -42,7 +42,7 @@ _del(void *data, int type, Ecore_Con_Event_Server_Del *ev) } Eina_Bool -_data(void *data, int type, Ecore_Con_Event_Server_Data *ev) +_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Data *ev) { char fmt[128]; diff --git a/src/examples/ecore/ecore_con_lookup_example.c b/src/examples/ecore/ecore_con_lookup_example.c index d81abf3a7d..41a001e426 100644 --- a/src/examples/ecore/ecore_con_lookup_example.c +++ b/src/examples/ecore/ecore_con_lookup_example.c @@ -6,7 +6,7 @@ #include static void -_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data) +_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data EINA_UNUSED) { printf("canonname = %s\n", canonname); printf("ip = %s\n", ip); diff --git a/src/examples/ecore/ecore_con_server_example.c b/src/examples/ecore/ecore_con_server_example.c index da63d28a5e..e835ab079e 100644 --- a/src/examples/ecore/ecore_con_server_example.c +++ b/src/examples/ecore/ecore_con_server_example.c @@ -24,7 +24,7 @@ tls_log_func(int level, const char *str) #endif Eina_Bool -_add(void *data, int type, Ecore_Con_Event_Client_Add *ev) +_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Add *ev) { printf("Client with ip %s connected!\n", ecore_con_client_ip_get(ev->client)); ecore_con_client_send(ev->client, "hello!", 6); @@ -35,7 +35,7 @@ _add(void *data, int type, Ecore_Con_Event_Client_Add *ev) } Eina_Bool -_del(void *data, int type, Ecore_Con_Event_Client_Del *ev) +_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del *ev) { printf("Lost client with ip %s!\n", ecore_con_client_ip_get(ev->client)); ecore_main_loop_quit(); @@ -43,7 +43,7 @@ _del(void *data, int type, Ecore_Con_Event_Client_Del *ev) } Eina_Bool -_data(void *data, int type, Ecore_Con_Event_Client_Data *ev) +_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Data *ev) { char fmt[128]; diff --git a/src/examples/ecore/ecore_con_url_download_example.c b/src/examples/ecore/ecore_con_url_download_example.c index 2723cc8d5e..429a9a20f8 100644 --- a/src/examples/ecore/ecore_con_url_download_example.c +++ b/src/examples/ecore/ecore_con_url_download_example.c @@ -16,7 +16,7 @@ struct _request }; static Eina_Bool -_url_progress_cb(void *data, int type, void *event_info) +_url_progress_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Con_Event_Url_Progress *url_progress = event_info; float percent; @@ -35,7 +35,7 @@ _url_progress_cb(void *data, int type, void *event_info) } static Eina_Bool -_url_complete_cb(void *data, int type, void *event_info) +_url_complete_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Con_Event_Url_Complete *url_complete = event_info; diff --git a/src/examples/ecore/ecore_con_url_headers_example.c b/src/examples/ecore/ecore_con_url_headers_example.c index 0911c68ace..656743f0cd 100644 --- a/src/examples/ecore/ecore_con_url_headers_example.c +++ b/src/examples/ecore/ecore_con_url_headers_example.c @@ -7,7 +7,7 @@ #include static Eina_Bool -_url_data_cb(void *data, int type, void *event_info) +_url_data_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Con_Event_Url_Data *url_data = event_info; int i; @@ -19,7 +19,7 @@ _url_data_cb(void *data, int type, void *event_info) } static Eina_Bool -_url_complete_cb(void *data, int type, void *event_info) +_url_complete_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Con_Event_Url_Complete *url_complete = event_info; const Eina_List *headers, *l; diff --git a/src/examples/ecore/ecore_evas_basics_example.c b/src/examples/ecore/ecore_evas_basics_example.c index b6fb94a2d3..f87c8220f6 100644 --- a/src/examples/ecore/ecore_evas_basics_example.c +++ b/src/examples/ecore/ecore_evas_basics_example.c @@ -14,7 +14,7 @@ #include static Eina_Bool -_stdin_cb(void *data, Ecore_Fd_Handler *handler) +_stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED) { Eina_List *l; Ecore_Evas *ee; diff --git a/src/examples/ecore/ecore_evas_callbacks.c b/src/examples/ecore/ecore_evas_callbacks.c index ce6c1f7c6d..eafde49b41 100644 --- a/src/examples/ecore/ecore_evas_callbacks.c +++ b/src/examples/ecore/ecore_evas_callbacks.c @@ -13,81 +13,81 @@ #include static void -_destroy(Ecore_Evas *ee) +_destroy(Ecore_Evas *ee EINA_UNUSED) { printf("destroy\n"); ecore_main_loop_quit(); } static void -_delete(Ecore_Evas *ee) +_delete(Ecore_Evas *ee EINA_UNUSED) { printf("delete\n"); ecore_main_loop_quit(); } static void -_focus_in(Ecore_Evas *ee) +_focus_in(Ecore_Evas *ee EINA_UNUSED) { printf("focus_in\n"); } static void -_focus_out(Ecore_Evas *ee) +_focus_out(Ecore_Evas *ee EINA_UNUSED) { printf("focus_out\n"); } static void -_hide(Ecore_Evas *ee) +_hide(Ecore_Evas *ee EINA_UNUSED) { printf("hide\n"); } static void -_mouse_in(Ecore_Evas *ee) +_mouse_in(Ecore_Evas *ee EINA_UNUSED) { printf("mouse_in\n"); } static void -_show(Ecore_Evas *ee) +_show(Ecore_Evas *ee EINA_UNUSED) { printf("show\n"); } static void -_mouse_out(Ecore_Evas *ee) +_mouse_out(Ecore_Evas *ee EINA_UNUSED) { printf("mouse_out\n"); } static void -_move(Ecore_Evas *ee) +_move(Ecore_Evas *ee EINA_UNUSED) { printf("move\n"); } static void -_post_render(Ecore_Evas *ee) +_post_render(Ecore_Evas *ee EINA_UNUSED) { printf("post_render\n"); } static void -_pre_free(Ecore_Evas *ee) +_pre_free(Ecore_Evas *ee EINA_UNUSED) { printf("pre_free\n"); } static void -_pre_render(Ecore_Evas *ee) +_pre_render(Ecore_Evas *ee EINA_UNUSED) { printf("pre_render\n"); } static void -_resize(Ecore_Evas *ee) +_resize(Ecore_Evas *ee EINA_UNUSED) { printf("resize\n"); } @@ -97,7 +97,7 @@ main(void) { Ecore_Evas *ee; Evas_Object *bg; - + ecore_evas_init(); ee = ecore_evas_new(NULL, 0, 0, 200, 100, NULL); @@ -108,7 +108,7 @@ main(void) evas_object_color_set(bg, 255, 128, 0, 255); evas_object_resize(bg, 9999, 9999); evas_object_show(bg); - + //callbacks ecore_evas_callback_delete_request_set(ee, _delete); ecore_evas_callback_destroy_set(ee, _destroy); diff --git a/src/examples/ecore/ecore_evas_ews_example.c b/src/examples/ecore/ecore_evas_ews_example.c index 07c0a238b1..a8af178dde 100644 --- a/src/examples/ecore/ecore_evas_ews_example.c +++ b/src/examples/ecore/ecore_evas_ews_example.c @@ -16,7 +16,7 @@ #include static Eina_Bool -_wm_win_add(void *data, int type, void *event_info) +_wm_win_add(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Evas *ee = event_info; printf("WM: new window=%p\n", ee); @@ -24,7 +24,7 @@ _wm_win_add(void *data, int type, void *event_info) } static Eina_Bool -_wm_win_move(void *data, int type, void *event_info) +_wm_win_move(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Evas *ee = event_info; int x, y; @@ -34,7 +34,7 @@ _wm_win_move(void *data, int type, void *event_info) } static Eina_Bool -_wm_win_resize(void *data, int type, void *event_info) +_wm_win_resize(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Evas *ee = event_info; int w, h; @@ -44,7 +44,7 @@ _wm_win_resize(void *data, int type, void *event_info) } static Eina_Bool -_wm_win_show(void *data, int type, void *event_info) +_wm_win_show(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) { Ecore_Evas *ee = event_info; printf("WM: show window=%p\n", ee); @@ -78,7 +78,7 @@ optional_ews_setup(void) } static Eina_Bool -_stdin_cb(void *data, Ecore_Fd_Handler *handler) +_stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED) { const Eina_List *l; Ecore_Evas *ee; diff --git a/src/examples/ecore/ecore_event_example_01.c b/src/examples/ecore/ecore_event_example_01.c index 840f051948..f354415f91 100644 --- a/src/examples/ecore/ecore_event_example_01.c +++ b/src/examples/ecore/ecore_event_example_01.c @@ -4,7 +4,7 @@ #include static Eina_Bool -_quitter(void *data, int ev_type, void *event) +_quitter(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED) { printf("Leaving already?\n"); ecore_main_loop_quit(); @@ -12,7 +12,7 @@ _quitter(void *data, int ev_type, void *event) } int -main(int argc, char **argv) +main(void) { ecore_init(); diff --git a/src/examples/ecore/ecore_event_example_02.c b/src/examples/ecore/ecore_event_example_02.c index 503f6141fa..b1c771ceb4 100644 --- a/src/examples/ecore/ecore_event_example_02.c +++ b/src/examples/ecore/ecore_event_example_02.c @@ -14,7 +14,7 @@ struct context // helper struct to give some context to the callbacks static int _event_type = 0; // a new type of event will be defined and stored here static Eina_Bool -_event_handler1_cb(void *data, int type, void *event) +_event_handler1_cb(void *data, int type EINA_UNUSED, void *event) { int *number = event; const char *str = data; @@ -28,7 +28,7 @@ _event_handler1_cb(void *data, int type, void *event) } static Eina_Bool -_event_handler2_cb(void *data, int type, void *event) // event callback +_event_handler2_cb(void *data, int type EINA_UNUSED, void *event) // event callback { struct context *ctxt = data; int *number = event; @@ -52,7 +52,7 @@ _event_handler2_cb(void *data, int type, void *event) // event callback } int -main(int argc, char **argv) +main(void) { struct context ctxt = {0}; int i; diff --git a/src/examples/ecore/ecore_exe_example.c b/src/examples/ecore/ecore_exe_example.c index 8d0dedc846..e58ac831cd 100644 --- a/src/examples/ecore/ecore_exe_example.c +++ b/src/examples/ecore/ecore_exe_example.c @@ -9,7 +9,7 @@ #define BUFFER_SIZE 1024 static Eina_Bool -_msg_from_child_handler(void *data, int type, void *event) +_msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) { Ecore_Exe_Event_Data *dataFromProcess = (Ecore_Exe_Event_Data *)event; char msg[BUFFER_SIZE]; @@ -19,10 +19,10 @@ _msg_from_child_handler(void *data, int type, void *event) fprintf(stdout, "Data too big for bugger. error\n"); return ECORE_CALLBACK_DONE; } - + strncpy(msg, dataFromProcess->data, dataFromProcess->size); msg[dataFromProcess->size] = 0; - + if (strcmp(msg, "quit") == 0) { fprintf(stdout, "My child said to me, QUIT!\n"); @@ -54,7 +54,7 @@ _sendMessage(void *data) } int -main(int argc, char **argv) +main(void) { pid_t childPid; Ecore_Exe *childHandle; diff --git a/src/examples/ecore/ecore_exe_example_child.c b/src/examples/ecore/ecore_exe_example_child.c index efe97fb111..f98d8fe7fd 100644 --- a/src/examples/ecore/ecore_exe_example_child.c +++ b/src/examples/ecore/ecore_exe_example_child.c @@ -9,8 +9,7 @@ #define BUFFER_SIZE 1024 static Eina_Bool -_fd_handler_cb(void *data, Ecore_Fd_Handler - *fd_handler) +_fd_handler_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EINA_UNUSED) { static int numberOfMessages = 0; char message[BUFFER_SIZE]; @@ -36,7 +35,7 @@ _fd_handler_cb(void *data, Ecore_Fd_Handler } int -main(int argc, char **argv) +main(void) { if (!ecore_init()) goto error; diff --git a/src/examples/ecore/ecore_fd_handler_example.c b/src/examples/ecore/ecore_fd_handler_example.c index b999dc322e..f842c34873 100644 --- a/src/examples/ecore/ecore_fd_handler_example.c +++ b/src/examples/ecore/ecore_fd_handler_example.c @@ -12,7 +12,7 @@ struct context }; static void -_fd_prepare_cb(void *data, Ecore_Fd_Handler *handler) +_fd_prepare_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED) { printf("prepare_cb called.\n"); } @@ -50,7 +50,7 @@ _fd_handler_cb(void *data, Ecore_Fd_Handler *handler) } static Eina_Bool -_timer_cb(void *data) +_timer_cb(void *data EINA_UNUSED) { printf("Timer expired after 5 seconds...\n"); @@ -58,7 +58,7 @@ _timer_cb(void *data) } int -main(int argc, char **argv) +main(void) { struct context ctxt = {0}; diff --git a/src/examples/ecore/ecore_file_download_example.c b/src/examples/ecore/ecore_file_download_example.c index e44c7e7312..a938336830 100644 --- a/src/examples/ecore/ecore_file_download_example.c +++ b/src/examples/ecore/ecore_file_download_example.c @@ -20,16 +20,16 @@ #define DST_MIME "[x-gzip]linux-1.0.tar.gz" void -completion_cb(void *data, const char *file, int status) +completion_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED, int status) { printf("Done (status: %d)\n", status); ecore_main_loop_quit(); } int -progress_cb(void *data, const char *file, +progress_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED, long int dltotal, long int dlnow, - long int ultotal, long int ulnow) + long int ultotal EINA_UNUSED, long int ulnow EINA_UNUSED) { printf("Progress: %ld/%ld\n", dlnow, dltotal); return ECORE_FILE_PROGRESS_CONTINUE; // continue the download diff --git a/src/examples/ecore/ecore_idler_example.c b/src/examples/ecore/ecore_idler_example.c index 6b640863aa..b33d86ff68 100644 --- a/src/examples/ecore/ecore_idler_example.c +++ b/src/examples/ecore/ecore_idler_example.c @@ -18,7 +18,7 @@ struct context // helper struct to give some context to the callbacks static int _event_type = 0; // a new type of event will be defined and stored here static Eina_Bool -_enterer_cb(void *data) // the idle enterer callback +_enterer_cb(void *data EINA_UNUSED) // the idle enterer callback { printf("IDLE ENTERER: Ecore entering in idle state.\n"); @@ -26,7 +26,7 @@ _enterer_cb(void *data) // the idle enterer callback } static Eina_Bool -_exiter_cb(void *data) // the idle exiter callback +_exiter_cb(void *data EINA_UNUSED) // the idle exiter callback { printf("IDLE EXITER: Ecore exiting idle state.\n"); @@ -50,7 +50,7 @@ _idler_cb(void *data) // the idler callback - ran while the mainloop is idle } static Eina_Bool -_event_handler_cb(void *data, int type, void *event) // event callback +_event_handler_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED) // event callback { struct context *ctxt = data; @@ -92,7 +92,7 @@ _timer_cb(void *data) } int -main(int argc, char **argv) +main(void) { struct context ctxt = {0}; diff --git a/src/examples/ecore/ecore_imf_example.c b/src/examples/ecore/ecore_imf_example.c index 14c3b877ec..60750373fd 100644 --- a/src/examples/ecore/ecore_imf_example.c +++ b/src/examples/ecore/ecore_imf_example.c @@ -33,7 +33,7 @@ struct _Entry static void _imf_cursor_info_set(Entry *en); static void -_mouse_down_cb(void *data, Evas *e, Evas_Object *o, void *event_info) +_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Entry *en = data; Evas_Event_Mouse_Down *ev = event_info; @@ -56,7 +56,7 @@ _mouse_down_cb(void *data, Evas *e, Evas_Object *o, void *event_info) } static void -_mouse_up_cb(void *data, Evas *e, Evas_Object *o, void *event_info) +_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Entry *en = data; Evas_Event_Mouse_Up *ev = event_info; @@ -88,7 +88,7 @@ _mouse_up_cb(void *data, Evas *e, Evas_Object *o, void *event_info) } static void -_entry_focus_in_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_entry_focus_in_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Entry *en = data; if (!en) return; @@ -101,7 +101,7 @@ _entry_focus_in_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_entry_focus_out_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_entry_focus_out_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED) { Entry *en = data; if (!en) return; @@ -115,7 +115,7 @@ _entry_focus_out_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_canvas_focus_in_cb(void *data, Evas *e, void *event_info) +_canvas_focus_in_cb(void *data EINA_UNUSED, Evas *e, void *event_info EINA_UNUSED) { Entry *en; Evas_Object *obj = evas_focus_get(e); @@ -127,7 +127,7 @@ _canvas_focus_in_cb(void *data, Evas *e, void *event_info) } static void -_canvas_focus_out_cb(void *data, Evas *e, void *event_info) +_canvas_focus_out_cb(void *data EINA_UNUSED, Evas *e, void *event_info EINA_UNUSED) { Entry *en; Evas_Object *obj = evas_focus_get(e); @@ -188,7 +188,7 @@ _preedit_clear(Entry *en) } static Eina_Bool -_ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos) +_ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, char **text, int *cursor_pos) { // This callback will be called when the Input Method Context module requests the surrounding context. Entry *en = data; @@ -209,7 +209,7 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te } static void -_ecore_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx, void *event_info) +_ecore_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info) { // called when the input method needs to delete all or part of the context surrounding the cursor Entry *en = data; @@ -238,7 +238,7 @@ _ecore_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx, void } static void -_ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx, void *event_info) +_ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info) { Entry *en = data; char *commit_str = (char *)event_info; @@ -260,7 +260,7 @@ _ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx, void *event_info) } static void -_ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *event_info) +_ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *event_info EINA_UNUSED) { // example how to get preedit string Entry *en = data; @@ -345,7 +345,7 @@ _ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *ev } static void -_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Entry *en = data; Evas_Event_Key_Down *ev = event_info; @@ -434,7 +434,7 @@ _key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_key_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_key_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info) { Entry *en = data; Evas_Event_Key_Up *ev = event_info; @@ -573,7 +573,7 @@ delete_input_field(Entry *en) } int -main(int argc, char *argv[]) +main(void) { Ecore_Evas *ee; Evas *evas; diff --git a/src/examples/ecore/ecore_job_example.c b/src/examples/ecore/ecore_job_example.c index 2621d7f1f5..541cadbc3c 100644 --- a/src/examples/ecore/ecore_job_example.c +++ b/src/examples/ecore/ecore_job_example.c @@ -13,13 +13,13 @@ _job_print_cb(void *data) } static void -_job_quit_cb(void *data) +_job_quit_cb(void *data EINA_UNUSED) { ecore_main_loop_quit(); } int -main(int argc, char **argv) +main(void) { Ecore_Job *job1, *job2, *job3, *job_quit; char *str1 = "Job 1 started."; @@ -49,5 +49,7 @@ main(int argc, char **argv) ecore_main_loop_begin(); ecore_shutdown(); + + return 0; } diff --git a/src/examples/ecore/ecore_pipe_simple_example.c b/src/examples/ecore/ecore_pipe_simple_example.c index 4d56af4c85..e15c9250f7 100644 --- a/src/examples/ecore/ecore_pipe_simple_example.c +++ b/src/examples/ecore/ecore_pipe_simple_example.c @@ -22,7 +22,7 @@ do_lengthy_task(Ecore_Pipe *pipe) } static void -handler(void *data, void *buf, unsigned int len) +handler(void *data EINA_UNUSED, void *buf, unsigned int len) { char *str = malloc(sizeof(char) * len + 1); memcpy(str, buf, len); @@ -38,7 +38,7 @@ handler(void *data, void *buf, unsigned int len) } int -main(int argc, char *argv[]) +main(void) { Ecore_Pipe *pipe; pid_t child_pid; diff --git a/src/examples/ecore/ecore_poller_example.c b/src/examples/ecore/ecore_poller_example.c index 132cb06f41..d0e896c7f5 100644 --- a/src/examples/ecore/ecore_poller_example.c +++ b/src/examples/ecore/ecore_poller_example.c @@ -18,7 +18,7 @@ _poller_print_cb(void *data) } static Eina_Bool -_poller_quit_cb(void *data) +_poller_quit_cb(void *data EINA_UNUSED) { ecore_main_loop_quit(); @@ -26,7 +26,7 @@ _poller_quit_cb(void *data) } int -main(int argc, char **argv) +main(void) { double interval = 0.3; // tick each 0.3 seconds Ecore_Poller *poller1, *poller2, *poller3; diff --git a/src/examples/ecore/ecore_server_bench.c b/src/examples/ecore/ecore_server_bench.c index 8c5961ef88..b921c372b8 100644 --- a/src/examples/ecore/ecore_server_bench.c +++ b/src/examples/ecore/ecore_server_bench.c @@ -14,7 +14,7 @@ static int add; static int del; Eina_Bool -_add(void *data, int type, Ecore_Con_Event_Client_Add *ev) +_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Add *ev EINA_UNUSED) { ++add; // printf ("%s ", ecore_con_client_ip_get(ev->client)); @@ -23,7 +23,7 @@ _add(void *data, int type, Ecore_Con_Event_Client_Add *ev) } Eina_Bool -_del(void *data, int type, Ecore_Con_Event_Client_Del *ev) +_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del *ev EINA_UNUSED) { ++del; printf("Disconnected #%i!\n", del); diff --git a/src/examples/ecore/ecore_thread_example.c b/src/examples/ecore/ecore_thread_example.c index 74cf386a50..ad7b018c59 100644 --- a/src/examples/ecore/ecore_thread_example.c +++ b/src/examples/ecore/ecore_thread_example.c @@ -51,7 +51,7 @@ _local_data_free(void *data) } static void -_short_job(void *data, Ecore_Thread *th) +_short_job(void *data EINA_UNUSED, Ecore_Thread *th) { Thread_Data *td; int i; @@ -86,7 +86,7 @@ _short_job(void *data, Ecore_Thread *th) } static void -_feedback_job(void *data, Ecore_Thread *th) +_feedback_job(void *data EINA_UNUSED, Ecore_Thread *th) { time_t t; int i, count; @@ -279,7 +279,7 @@ _cancel_timer_cb(void *data) } static Eina_Bool -_status_timer_cb(void *data) +_status_timer_cb(void *data EINA_UNUSED) { _print_status(); @@ -416,4 +416,3 @@ main(int argc, char *argv[]) return 0; } - diff --git a/src/examples/ecore/ecore_time_functions_example.c b/src/examples/ecore/ecore_time_functions_example.c index 3e7b703d38..c9020e93af 100644 --- a/src/examples/ecore/ecore_time_functions_example.c +++ b/src/examples/ecore/ecore_time_functions_example.c @@ -5,7 +5,7 @@ #include static Eina_Bool -_timer_cb(void *data) +_timer_cb(void *data EINA_UNUSED) { printf("ecore time: %0.3f\n", ecore_time_get()); printf("loop time: %0.3f\n", ecore_loop_time_get()); @@ -22,7 +22,7 @@ _timer_cb(void *data) } int -main(int argc, char **argv) +main(void) { if (!ecore_init()) { diff --git a/src/examples/ecore/ecore_timer_example.c b/src/examples/ecore/ecore_timer_example.c index 27d2958413..8edf09e295 100644 --- a/src/examples/ecore/ecore_timer_example.c +++ b/src/examples/ecore/ecore_timer_example.c @@ -36,7 +36,7 @@ _get_current_time(void) } static Eina_Bool -_timer1_cb(void *data) +_timer1_cb(void *data EINA_UNUSED) { printf("Timer1 expired after %0.3f seconds.\n", _get_current_time()); return ECORE_CALLBACK_RENEW; @@ -143,7 +143,7 @@ _timer6_cb(void *data) } int -main(int argc, char **argv) +main(void) { struct context ctxt = {0}; diff --git a/src/examples/eet/eet-data-file_descriptor_01.c b/src/examples/eet/eet-data-file_descriptor_01.c index be43df93da..2972b812f7 100644 --- a/src/examples/eet/eet-data-file_descriptor_01.c +++ b/src/examples/eet/eet-data-file_descriptor_01.c @@ -247,10 +247,10 @@ _my_cache_new(void) } /* _my_cache_new */ static Eina_Bool -_my_cache_account_free_cb(const Eina_Hash *hash, - const void *key, +_my_cache_account_free_cb(const Eina_Hash *hash EINA_UNUSED, + const void *key EINA_UNUSED, void *data, - void *fdata) + void *fdata EINA_UNUSED) { _my_account_free(data); return EINA_TRUE; diff --git a/src/examples/eina/eina_tiler_01.c b/src/examples/eina/eina_tiler_01.c index 6202a88b14..83174b4327 100644 --- a/src/examples/eina/eina_tiler_01.c +++ b/src/examples/eina/eina_tiler_01.c @@ -158,7 +158,7 @@ add_output_rect(const Eina_Rectangle *r) } static Eina_Bool -process_input(void *data) +process_input(void *data EINA_UNUSED) { Eina_Iterator *itr; Eina_Rectangle r, *r1; diff --git a/src/examples/evas/evas-map-utils.c b/src/examples/evas/evas-map-utils.c index f4acf5bb6d..7f8b2526f8 100644 --- a/src/examples/evas/evas-map-utils.c +++ b/src/examples/evas/evas-map-utils.c @@ -163,7 +163,7 @@ _anim_cb(void *data) } static void -_on_keydown(void *data, Evas *e, Evas_Object *o, void *event) +_on_keydown(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event) { App_Data *ad = data; Evas_Event_Key_Down *ev = event; diff --git a/src/examples/evas/evas-smart-interface.c b/src/examples/evas/evas-smart-interface.c index 39e24f3121..39b4021ffc 100644 --- a/src/examples/evas/evas-smart-interface.c +++ b/src/examples/evas/evas-smart-interface.c @@ -101,7 +101,7 @@ struct _Evas_Smart_Example_Interface static Evas_Smart_Example_Interface iface1; static Eina_Bool -_iface1_add(Evas_Object *obj) +_iface1_add(Evas_Object *obj EINA_UNUSED) { printf("iface1's add()!\n"); @@ -117,7 +117,7 @@ _iface1_del(Evas_Object *obj) } static void -_iface1_custom_fn(Evas_Object *obj) +_iface1_custom_fn(Evas_Object *obj EINA_UNUSED) { printf("iface1's custom_fn()!\n"); }