Ethumb: Add a bunch of UNUSED where needed.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Jul 2011 23:12:55 +0000 (23:12 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Jul 2011 23:12:55 +0000 (23:12 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/ethumb@61622 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/ethumbd_child.c
src/lib/Ethumb.c
src/lib/client/Ethumb_Client.c

index 88b112e..5ab7f25 100644 (file)
@@ -125,7 +125,7 @@ _ec_write_safe(int fd, const void *buf, ssize_t size)
 }
 
 static int
-_ec_pipe_str_read(struct _Ethumbd_Child *ec, char **str)
+_ec_pipe_str_read(struct _Ethumbd_Child *ec __UNUSED__, char **str)
 {
    int size;
    int r;
@@ -214,7 +214,7 @@ _ec_op_del(struct _Ethumbd_Child *ec)
 }
 
 static void
-_ec_op_generated_cb(void *data, Ethumb *e, Eina_Bool success)
+_ec_op_generated_cb(void *data __UNUSED__, Ethumb *e, Eina_Bool success)
 {
    const char *thumb_path, *thumb_key;
    int size_path, size_key, size_cmd;
@@ -290,7 +290,7 @@ _ec_op_generate(struct _Ethumbd_Child *ec)
 }
 
 static int
-_ec_fdo_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_fdo_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -305,7 +305,7 @@ _ec_fdo_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_size_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_size_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int w, h;
@@ -327,7 +327,7 @@ _ec_size_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_format_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_format_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -342,7 +342,7 @@ _ec_format_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_aspect_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_aspect_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -357,7 +357,7 @@ _ec_aspect_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_orientation_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_orientation_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -372,7 +372,7 @@ _ec_orientation_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_crop_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_crop_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    float x, y;
@@ -394,7 +394,7 @@ _ec_crop_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_quality_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_quality_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -409,7 +409,7 @@ _ec_quality_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_compress_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_compress_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -487,7 +487,7 @@ _ec_category_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_video_time_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_video_time_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    float value;
@@ -502,7 +502,7 @@ _ec_video_time_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_video_start_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_video_start_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    float value;
@@ -517,7 +517,7 @@ _ec_video_start_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_video_interval_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_video_interval_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    float value;
@@ -532,7 +532,7 @@ _ec_video_interval_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_video_ntimes_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_video_ntimes_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -547,7 +547,7 @@ _ec_video_ntimes_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_video_fps_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_video_fps_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -562,7 +562,7 @@ _ec_video_fps_set(struct _Ethumbd_Child *ec, Ethumb *e)
 }
 
 static int
-_ec_document_page_set(struct _Ethumbd_Child *ec, Ethumb *e)
+_ec_document_page_set(struct _Ethumbd_Child *ec __UNUSED__, Ethumb *e)
 {
    int r;
    int value;
@@ -730,7 +730,7 @@ _ec_setup(struct _Ethumbd_Child *ec)
 }
 
 int
-main(int argc, const char *argv[])
+main(int argc __UNUSED__, const char *argv[] __UNUSED__)
 {
    struct _Ethumbd_Child *ec;
 
index eb2e0ca..c844cd5 100644 (file)
@@ -1745,7 +1745,7 @@ ethumb_key_cmp(const void *key1, __UNUSED__ int key1_length,
 #define HASH_PARAM_F(Param) r ^= eina_hash_int32((unsigned int*) &e->Param, 0);
 
 EAPI int
-ethumb_hash(const void *key, int key_length)
+ethumb_hash(const void *key, int key_length __UNUSED__)
 {
    const Ethumb *e = key;
    int r = 0;
index aaffa20..5ccb49e 100644 (file)
@@ -592,7 +592,7 @@ error:
 }
 
 static void
-_ethumb_client_exists_heavy(void *data, Ecore_Thread *thread)
+_ethumb_client_exists_heavy(void *data, Ecore_Thread *thread __UNUSED__)
 {
    Ethumb_Async_Exists *async = data;
 
@@ -600,7 +600,7 @@ _ethumb_client_exists_heavy(void *data, Ecore_Thread *thread)
 }
 
 static void
-_ethumb_client_exists_end(void *data, Ecore_Thread *thread)
+_ethumb_client_exists_end(void *data, Ecore_Thread *thread __UNUSED__)
 {
    Ethumb_Async_Exists *async = data;
    Ethumb_Async_Exists_Cb *cb;