examples: remove unused param warnings
authorVincent Torri <vincent.torri@gmail.com>
Thu, 9 Jan 2014 07:33:20 +0000 (08:33 +0100)
committerCedric BAIL <cedric.bail@samsung.com>
Fri, 10 Jan 2014 07:35:32 +0000 (16:35 +0900)
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
29 files changed:
src/examples/ecore/ecore_animator_example.c
src/examples/ecore/ecore_client_bench.c
src/examples/ecore/ecore_con_client_example.c
src/examples/ecore/ecore_con_lookup_example.c
src/examples/ecore/ecore_con_server_example.c
src/examples/ecore/ecore_con_url_download_example.c
src/examples/ecore/ecore_con_url_headers_example.c
src/examples/ecore/ecore_evas_basics_example.c
src/examples/ecore/ecore_evas_callbacks.c
src/examples/ecore/ecore_evas_ews_example.c
src/examples/ecore/ecore_event_example_01.c
src/examples/ecore/ecore_event_example_02.c
src/examples/ecore/ecore_exe_example.c
src/examples/ecore/ecore_exe_example_child.c
src/examples/ecore/ecore_fd_handler_example.c
src/examples/ecore/ecore_file_download_example.c
src/examples/ecore/ecore_idler_example.c
src/examples/ecore/ecore_imf_example.c
src/examples/ecore/ecore_job_example.c
src/examples/ecore/ecore_pipe_simple_example.c
src/examples/ecore/ecore_poller_example.c
src/examples/ecore/ecore_server_bench.c
src/examples/ecore/ecore_thread_example.c
src/examples/ecore/ecore_time_functions_example.c
src/examples/ecore/ecore_timer_example.c
src/examples/eet/eet-data-file_descriptor_01.c
src/examples/eina/eina_tiler_01.c
src/examples/evas/evas-map-utils.c
src/examples/evas/evas-smart-interface.c

index eb9e151..91c2aa3 100644 (file)
@@ -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;
index f4ef3ed..3350aae 100644 (file)
@@ -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;
 
index 580289f..24c0484 100644 (file)
@@ -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];
 
index d81abf3..41a001e 100644 (file)
@@ -6,7 +6,7 @@
 #include <Ecore_Con.h>
 
 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);
index da63d28..e835ab0 100644 (file)
@@ -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];
 
index 2723cc8..429a9a2 100644 (file)
@@ -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;
 
index 0911c68..656743f 100644 (file)
@@ -7,7 +7,7 @@
 #include <Ecore_Con.h>
 
 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;
index b6fb94a..f87c822 100644 (file)
@@ -14,7 +14,7 @@
 #include <unistd.h>
 
 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;
index ce6c1f7..eafde49 100644 (file)
 #include <Ecore_Evas.h>
 
 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);
index 07c0a23..a8af178 100644 (file)
@@ -16,7 +16,7 @@
 #include <ctype.h>
 
 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;
index 840f051..f354415 100644 (file)
@@ -4,7 +4,7 @@
 #include <Ecore.h>
 
 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();
 
index 503f614..b1c771c 100644 (file)
@@ -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;
index 8d0dedc..e58ac83 100644 (file)
@@ -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;
index efe97fb..f98d8fe 100644 (file)
@@ -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;
index b999dc3..f842c34 100644 (file)
@@ -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};
 
index e44c7e7..a938336 100644 (file)
 #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
index 6b64086..b33d86f 100644 (file)
@@ -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};
 
index 14c3b87..6075037 100644 (file)
@@ -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;
index 2621d7f..541cadb 100644 (file)
@@ -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;
 }
 
index 4d56af4..e15c925 100644 (file)
@@ -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;
index 132cb06..d0e896c 100644 (file)
@@ -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;
index 8c5961e..b921c37 100644 (file)
@@ -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);
index 74cf386..ad7b018 100644 (file)
@@ -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;
 }
-
index 3e7b703..c9020e9 100644 (file)
@@ -5,7 +5,7 @@
 #include <unistd.h>
 
 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())
      {
index 27d2958..8edf09e 100644 (file)
@@ -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};
 
index be43df9..2972b81 100644 (file)
@@ -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;
index 6202a88..83174b4 100644 (file)
@@ -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;
index f4acf5b..7f8b252 100644 (file)
@@ -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;
index 39e24f3..39b4021 100644 (file)
@@ -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");
 }