examples: remove unused param warnings

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
Vincent Torri 2014-01-09 08:33:20 +01:00 committed by Cedric BAIL
parent 15ca789692
commit 6871f93e2f
29 changed files with 94 additions and 94 deletions

View 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;

View 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;

View 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];

View 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);

View 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];

View 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;

View 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;

View 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;

View File

@ -13,81 +13,81 @@
#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);

View 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;

View 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();

View 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;

View 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;

View 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;

View 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};

View File

@ -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

View 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};

View 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;

View 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;
}

View 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;

View 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;

View 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);

View 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;
}

View 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())
{

View 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};

View 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;

View 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;

View 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;

View 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");
}