summaryrefslogtreecommitdiff
path: root/src/examples/eio
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 15:33:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:44:57 +0900
commitbcf3ce84289ad4c91e89d6f5c3c9167af60036f3 (patch)
treed22ab98afccd2f5570aec74fd7957547c2011025 /src/examples/eio
parenta71b770bbc848bff2231bac1e75bf2a85885aca5 (diff)
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/eio')
-rw-r--r--src/examples/eio/efl_io_manager_ls.c2
-rw-r--r--src/examples/eio/efl_io_manager_open.c2
-rw-r--r--src/examples/eio/efl_io_manager_open_multi.c2
-rw-r--r--src/examples/eio/eio_sentry.c2
4 files changed, 5 insertions, 3 deletions
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 @@
10#include <Eio.h> 10#include <Eio.h>
11#include <Ecore.h> 11#include <Ecore.h>
12 12
13void leave(Efl_Io_Manager *job) 13void leave(Efl_Io_Manager *job EINA_UNUSED)
14{ 14{
15 ecore_main_loop_quit(); 15 ecore_main_loop_quit();
16} 16}
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 @@
9#include <Eio.h> 9#include <Eio.h>
10#include <Ecore.h> 10#include <Ecore.h>
11 11
12void error_cb(void *data, const Efl_Event *ev) 12void error_cb(void *data EINA_UNUSED, const Efl_Event *ev)
13{ 13{
14 Efl_Future_Event_Failure *failure = ev->info; 14 Efl_Future_Event_Failure *failure = ev->info;
15 const char *msg = eina_error_msg_get(failure->error); 15 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)
14 Efl_Future_Event_Failure *failure = ev->info; 14 Efl_Future_Event_Failure *failure = ev->info;
15 const char *msg = eina_error_msg_get(failure->error); 15 const char *msg = eina_error_msg_get(failure->error);
16 Efl_Io_Manager *job = data; 16 Efl_Io_Manager *job = data;
17 (void) job;
17 18
18 EINA_LOG_ERR("error: %s", msg); 19 EINA_LOG_ERR("error: %s", msg);
19 20
@@ -23,6 +24,7 @@ void error_cb(void *data, const Efl_Event *ev)
23void done_closing_cb(void *data, const Efl_Event *ev EINA_UNUSED) 24void done_closing_cb(void *data, const Efl_Event *ev EINA_UNUSED)
24{ 25{
25 Efl_Io_Manager *job = data; 26 Efl_Io_Manager *job = data;
27 (void) job;
26 28
27 printf("%s closed all files.\n", __FUNCTION__); 29 printf("%s closed all files.\n", __FUNCTION__);
28 30
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[])
45 if (argc > 1) 45 if (argc > 1)
46 path = argv[1]; 46 path = argv[1];
47 47
48 Ecore_Job *job = ecore_job_add(&monitor_stuff, path); 48 ecore_job_add(&monitor_stuff, path);
49 49
50 ecore_main_loop_begin(); 50 ecore_main_loop_begin();
51 51