examples: eio: mark unused parameter as such
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 6 Jun 2016 13:16:36 +0000 (15:16 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 6 Jun 2016 13:43:15 +0000 (15:43 +0200)
Really shutting up warnings here to see what else the compiler has to say.

src/examples/eio/eio_job_ls.c
src/examples/eio/eio_sentry.c

index 9426c23..2054f22 100644 (file)
@@ -28,7 +28,7 @@ void error_cb(void *data, Eina_Error error)
     eo_unref(job);
 }
 
-void filter_cb(void *data, const Eo_Event *event)
+void filter_cb(void *data EINA_UNUSED, const Eo_Event *event)
 {
     Eio_Filter_Name_Data *event_info = event->info;
     static Eina_Bool should_filter = EINA_FALSE;
@@ -40,7 +40,7 @@ void filter_cb(void *data, const Eo_Event *event)
 }
 
 // Progress used to be the "Eio_Main_Cb" family of callbacks in the legacy API.
-void progress_cb(void *data, const char *filename)
+void progress_cb(void *data EINA_UNUSED, const char *filename)
 {
     EINA_SAFETY_ON_NULL_RETURN(filename);
     printf("%s listing filename: %s\n", __FUNCTION__, filename);
index a6218a7..f48ee46 100644 (file)
@@ -11,7 +11,7 @@
 #include <Ecore.h>
 
 Eina_Bool
-sentry_cb(void *data, const Eo_Event *event)
+sentry_cb(void *data EINA_UNUSED, const Eo_Event *event)
 {
     Eio_Sentry_Event *event_info = event->info;