From c4c0110ce3b45c08c4805c2edae7e38cb7e0ab6a Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 12 Feb 2008 06:14:27 +0000 Subject: [PATCH] more evas_hash_foreach fixes. add __UNUSED__ where needed. SVN revision: 33735 --- src/modules/conf_imc/e_int_config_imc.c | 8 ++++---- src/modules/temperature/e_mod_main.c | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modules/conf_imc/e_int_config_imc.c b/src/modules/conf_imc/e_int_config_imc.c index 5c1effe18..69765159a 100644 --- a/src/modules/conf_imc/e_int_config_imc.c +++ b/src/modules/conf_imc/e_int_config_imc.c @@ -36,8 +36,8 @@ static void _e_imc_change_enqueue (E_Config_Dialog_Data *cfdata); static void _e_imc_entry_change_cb (void *data, Evas_Object *obj); static void _e_imc_form_fill (E_Config_Dialog_Data *cfdata); static const char* _e_imc_file_name_new_get (void); -static Evas_Bool _change_hash_free_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); -static Evas_Bool _change_hash_apply_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); +static Evas_Bool _change_hash_free_cb (const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__); +static Evas_Bool _change_hash_apply_cb (const Evas_Hash *hash __UNUSED__, const char *key, void *data, void *fdata __UNUSED__); struct _E_Config_Dialog_Data { @@ -143,7 +143,7 @@ _create_data(E_Config_Dialog *cfd) } static Evas_Bool -_change_hash_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_change_hash_free_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__) { E_Input_Method_Config *imc; @@ -385,7 +385,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf /*** Start Advanced Dialog Logic ***/ static Evas_Bool -_change_hash_apply_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_change_hash_apply_cb(const Evas_Hash *hash __UNUSED__, const char *key, void *data, void *fdata __UNUSED__) { E_Input_Method_Config *imc; Eet_File *ef; diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c index 3afdfee5f..98055c12f 100644 --- a/src/modules/temperature/e_mod_main.c +++ b/src/modules/temperature/e_mod_main.c @@ -43,8 +43,8 @@ static void _temperature_face_cb_post_menu(void *data, E_Menu *m); static void _temperature_face_level_set(Config_Face *inst, double level); static void _temperature_face_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi); -static Evas_Bool _temperature_face_shutdown(Evas_Hash *hash, const char *key, void *hdata, void *fdata); -static Evas_Bool _temperature_face_id_max(Evas_Hash *hash, const char *key, void *hdata, void *fdata); +static Evas_Bool _temperature_face_shutdown(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *hdata, void *fdata __UNUSED__); +static Evas_Bool _temperature_face_id_max(const Evas_Hash *hash __UNUSED__, const char *key, void *hdata __UNUSED__, void *fdata); static E_Config_DD *conf_edd = NULL; static E_Config_DD *conf_face_edd = NULL; @@ -360,7 +360,7 @@ _temperature_face_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi) } static Evas_Bool -_temperature_face_shutdown(Evas_Hash *hash, const char *key, void *hdata, void *fdata) +_temperature_face_shutdown(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *hdata, void *fdata __UNUSED__) { Config_Face *inst; @@ -373,11 +373,11 @@ _temperature_face_shutdown(Evas_Hash *hash, const char *key, void *hdata, void * } static Evas_Bool -_temperature_face_id_max(Evas_Hash *hash, const char *key, void *hdata, void *fdata) +_temperature_face_id_max(const Evas_Hash *hash __UNUSED__, const char *key, void *hdata __UNUSED__, void *fdata) { const char *p; - int *max; - int num = -1; + int *max; + int num = -1; max = fdata; p = strrchr(key, '.');