summaryrefslogtreecommitdiff
path: root/src/examples/eio
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-02-28 13:32:04 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-02-28 14:37:53 +0100
commit4e2e2ea01e9684efbee666e1fffd06301c80bf18 (patch)
treeae915c8b5ad7863aa118cadca40f0f4149a2ed98 /src/examples/eio
parent886c8d55b7707a041e3ae2a527bcb584680855b1 (diff)
examples: Use EINA_UNUSED in examples to silence a ton of warning
First step to get the examples compiling output in a useful state. With all the warning noise one would never see the important messages. If you add new code please make sure its warning free.
Diffstat (limited to 'src/examples/eio')
-rw-r--r--src/examples/eio/eio_file_ls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/eio/eio_file_ls.c b/src/examples/eio/eio_file_ls.c
index 795e80bf4a..a9315ff90e 100644
--- a/src/examples/eio/eio_file_ls.c
+++ b/src/examples/eio/eio_file_ls.c
@@ -8,7 +8,7 @@
8#include <Ecore.h> 8#include <Ecore.h>
9 9
10static Eina_Bool 10static Eina_Bool
11_filter_cb(void *data, Eio_File *handler, const char *file) 11_filter_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, const char *file)
12{ 12{
13 char *last_slash = strrchr(file, '/'); 13 char *last_slash = strrchr(file, '/');
14 14
@@ -20,7 +20,7 @@ _filter_cb(void *data, Eio_File *handler, const char *file)
20} 20}
21 21
22static void 22static void
23_main_cb(void *data, Eio_File *handler, const char *file) 23_main_cb(void *data, Eio_File *handler EINA_UNUSED, const char *file)
24{ 24{
25 int *number_of_listed_files = (int *)data; 25 int *number_of_listed_files = (int *)data;
26 26
@@ -30,7 +30,7 @@ _main_cb(void *data, Eio_File *handler, const char *file)
30} 30}
31 31
32static void 32static void
33_done_cb(void *data, Eio_File *handler) 33_done_cb(void *data, Eio_File *handler EINA_UNUSED)
34{ 34{
35 int *number_of_listed_files = (int *)data; 35 int *number_of_listed_files = (int *)data;
36 36
@@ -41,7 +41,7 @@ _done_cb(void *data, Eio_File *handler)
41} 41}
42 42
43static void 43static void
44_error_cb(void *data, Eio_File *handler, int error) 44_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error)
45{ 45{
46 fprintf(stderr, "Something wrong has happend:%s\n", strerror(error)); 46 fprintf(stderr, "Something wrong has happend:%s\n", strerror(error));
47 ecore_main_loop_quit(); 47 ecore_main_loop_quit();