#include "comp.h"
int
-main(int argc, char **argv)
+main(void)
{
int i = 0, k;
char *path;
#include "comp.h"
int
-main(int argc, char **argv)
+main(void)
{
int k;
}
static Eina_Bool
-_hash_keys(Eina_Hash *hash, const char *key, void *list)
+_hash_keys(Eina_Hash *hash __UNUSED__, const char *key, void *list)
{
Eina_List **l = list;
Efreet_Icon_Theme *theme;
const char *dir;
char buf[PATH_MAX];
- void *value;
dirs = eina_hash_string_superfast_new(free);
* @internal
* @param node: The node to work with
* @param desktop: The desktop file to work with
- * @return Returns no value
+ * @return Returns always true, to be used in eina_hash_foreach()
* @brief Parses out an X- key from @a node and stores in @a desktop
*/
static Eina_Bool
-efreet_desktop_x_fields_parse(const Eina_Hash *hash, const void *key, void *value, void *fdata)
+efreet_desktop_x_fields_parse(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
{
Efreet_Desktop * desktop = fdata;
+ if (!desktop) return EINA_TRUE;
if (strncmp(key, "X-", 2)) return EINA_TRUE;
- if (desktop && !desktop->x)
+ if (!desktop->x)
desktop->x = eina_hash_string_superfast_new(EINA_FREE_CB(eina_stringshare_del));
eina_hash_del(desktop->x, key, NULL);
eina_hash_add(desktop->x, key, (void *)eina_stringshare_add(value));
* @brief Stores an X- key from @a node and stores in @a ini
*/
static Eina_Bool
-efreet_desktop_x_fields_save(const Eina_Hash *hash, const void *key, void *value, void *fdata)
+efreet_desktop_x_fields_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
{
Efreet_Ini *ini = fdata;
efreet_ini_string_set(ini, key, value);
unsigned int size);
static Efreet_Icon *efreet_icon_new(const char *path);
-static void efreet_icon_point_free(Efreet_Icon_Point *point);
static void efreet_icon_populate(Efreet_Icon *icon, const char *file);
static char *efreet_icon_lookup_directory_helper(Efreet_Icon_Theme_Directory *dir,
static Efreet_Icon_Theme_Directory *efreet_icon_theme_directory_new(Efreet_Ini *ini,
const char *name);
-static void efreet_icon_theme_directory_free(Efreet_Icon_Theme_Directory *dir);
static void efreet_icon_theme_cache_check(Efreet_Icon_Theme *theme);
static int efreet_icon_theme_cache_check_dir(Efreet_Icon_Theme *theme,
}
static Eina_Bool
-_hash_keys(Eina_Hash *hash, const void *key, void *list)
+_hash_keys(Eina_Hash *hash __UNUSED__, const void *key, void *list)
{
*(Eina_List**)list = eina_list_append(*(Eina_List**)list, key);
return EINA_TRUE;
EAPI char *
efreet_icon_path_find(const char *theme_name, const char *icon, unsigned int size)
{
- char *value = NULL;
+ const char *cached;
+ char *value;
Efreet_Icon_Theme *theme;
- if ((value = efreet_icon_hash_get(theme_name, icon, size)) != NULL)
+ if ((cached = efreet_icon_hash_get(theme_name, icon, size)) != NULL)
{
- if (value == NON_EXISTING) return NULL;
- return strdup(value);
+ if (cached == NON_EXISTING) return NULL;
+ return strdup(cached);
}
theme = efreet_icon_find_theme_check(theme_name);
/**
* @internal
- * @param point: The Efreet_Icon_Point to free
- * @return Returns no value
- * @brief Frees the given structure
- */
-static void
-efreet_icon_point_free(Efreet_Icon_Point *point)
-{
- if (!point) return;
-
- FREE(point);
-}
-
-/**
- * @internal
* @param icon: The icon to populate
* @param file: The file to populate from
* @return Returns no value
return dir;
}
-/**
- * @internal
- * @param dir: The Efreet_Icon_Theme_Directory to free
- * @return Returns no value
- * @brief Frees the given directory @a dir
- */
-static void
-efreet_icon_theme_directory_free(Efreet_Icon_Theme_Directory *dir)
-{
- if (!dir) return;
-
- IF_FREE(dir->name);
- FREE(dir);
-}
-
static int
efreet_icon_cache_find(Efreet_Icon_Cache *value, const char *key)
{
}
static Eina_Bool
-efreet_ini_section_save(const Eina_Hash *hash, const void *key, void *value, void *fdata)
+efreet_ini_section_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
{
FILE *f = fdata;
}
static Eina_Bool
-efreet_ini_value_save(const Eina_Hash *hash, const void *key, void *value, void *fdata)
+efreet_ini_value_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
{
FILE *f = fdata;
static char *efreet_menu_path_get(Efreet_Menu_Internal *internal, const char *suffix);
static Efreet_Menu_App_Dir *efreet_menu_app_dir_new(void);
-static void efreet_menu_app_dir_free(Efreet_Menu_App_Dir *dir);
static Efreet_Menu_Move *efreet_menu_move_new(void);
static void efreet_menu_move_free(Efreet_Menu_Move *move);
static void efreet_menu_filter_free(Efreet_Menu_Filter *filter);
static Efreet_Menu_Layout *efreet_menu_layout_new(void);
-static void efreet_menu_layout_free(Efreet_Menu_Layout *layout);
static Efreet_Menu_Filter_Op *efreet_menu_filter_op_new(void);
static void efreet_menu_filter_op_free(Efreet_Menu_Filter_Op *op);
/**
* @internal
- * @param layout: The layout to work with
- * @return Returns no data
- * @brief Frees the given layout and all data
- */
-static void
-efreet_menu_layout_free(Efreet_Menu_Layout *layout)
-{
- if (!layout) return;
-
- IF_FREE(layout->name);
-
- FREE(layout);
-}
-
-/**
- * @internal
* @return Returns a new Efreet_Menu_Filter_Op on success or NULL on failure
* @brief Creates and initializes an Efreet_Menu_Filter_Op structure
*/
/**
* @internal
- * @param dir: The app dir to free
- * @return Returns no value
- * @brief Frees @a dir
- */
-static void
-efreet_menu_app_dir_free(Efreet_Menu_App_Dir *dir)
-{
- if (!dir) return;
-
- IF_FREE(dir->path);
- IF_FREE(dir->prefix);
-
- FREE(dir);
-}
-
-/**
- * @internal
* @param a: The app dir to compare too
* @param b: The path to compare too
* @return Returns 1 if the strings are equals, 0 otherwise
}
static Eina_Bool
-_hash_keys(Eina_Hash *hash, const void *key, void *fdata)
+_hash_keys(Eina_Hash *hash __UNUSED__, const void *key, void *fdata)
{
Eina_List **l = fdata;