forked from enlightenment/efl
fix some warnings, mostly missing "void" when a function has no parameters
SVN revision: 30474
This commit is contained in:
parent
ee938c5191
commit
a001af9e23
|
@ -389,8 +389,8 @@ extern "C" {
|
|||
EAPI void ecore_string_shutdown(void);
|
||||
EAPI const char *ecore_string_instance(const char *string);
|
||||
EAPI void ecore_string_release(const char *string);
|
||||
EAPI void ecore_string_hash_dump_graph();
|
||||
EAPI void ecore_string_hash_dump_stats();
|
||||
EAPI void ecore_string_hash_dump_graph(void);
|
||||
EAPI void ecore_string_hash_dump_stats(void);
|
||||
|
||||
|
||||
typedef struct _Ecore_Tree_Node Ecore_Tree_Node;
|
||||
|
|
|
@ -103,13 +103,13 @@ ecore_string_release(const char *string)
|
|||
}
|
||||
|
||||
EAPI void
|
||||
ecore_string_hash_dump_graph()
|
||||
ecore_string_hash_dump_graph(void)
|
||||
{
|
||||
ecore_hash_dump_graph(ecore_strings);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_string_hash_dump_stats()
|
||||
ecore_string_hash_dump_stats(void)
|
||||
{
|
||||
ecore_hash_dump_stats(ecore_strings);
|
||||
}
|
||||
|
|
|
@ -426,7 +426,7 @@ efreet_util_desktop_comment_glob_list(const char *glob)
|
|||
* @return an Ecore_List of category names (const char *)
|
||||
*/
|
||||
Ecore_List *
|
||||
efreet_util_desktop_categories_list()
|
||||
efreet_util_desktop_categories_list(void)
|
||||
{
|
||||
return ecore_hash_keys(desktops_by_category);
|
||||
}
|
||||
|
@ -957,7 +957,7 @@ efreet_util_monitor_free(void *data)
|
|||
* @return An ecore list of menu file paths (const char *). This must be freed with ecore_list_destroy().
|
||||
*/
|
||||
Ecore_List *
|
||||
efreet_util_menus_find()
|
||||
efreet_util_menus_find(void)
|
||||
{
|
||||
Ecore_List *menus, *dirs;
|
||||
const char *dir;
|
||||
|
|
|
@ -38,10 +38,10 @@ Ecore_List *efreet_util_desktop_exec_glob_list(const char *glob);
|
|||
Ecore_List *efreet_util_desktop_generic_name_glob_list(const char *glob);
|
||||
Ecore_List *efreet_util_desktop_comment_glob_list(const char *glob);
|
||||
|
||||
Ecore_List *efreet_util_desktop_categories_list();
|
||||
Ecore_List *efreet_util_desktop_categories_list(void);
|
||||
Ecore_List *efreet_util_desktop_category_list(const char *category);
|
||||
|
||||
Ecore_List *efreet_util_menus_find();
|
||||
Ecore_List *efreet_util_menus_find(void);
|
||||
extern int EFREET_EVENT_DESKTOP_LIST_CHANGE;
|
||||
extern int EFREET_EVENT_DESKTOP_CHANGE;
|
||||
|
||||
|
|
|
@ -1052,7 +1052,7 @@ embryo_program_run(Embryo_Program *ep, Embryo_Function fn)
|
|||
* for us. so that means EXCESS elements are all declared as OP_NONE to
|
||||
* keep them innocuous.
|
||||
*/
|
||||
const static void *switchtable[256] =
|
||||
static const void *switchtable[256] =
|
||||
{
|
||||
&&SWITCHTABLE_EMBRYO_OP_NONE,
|
||||
&&SWITCHTABLE_EMBRYO_OP_LOAD_PRI,
|
||||
|
|
|
@ -863,7 +863,7 @@ static const char *stylestr;
|
|||
static const char *tabstopsstr;
|
||||
|
||||
static void
|
||||
_format_command_init()
|
||||
_format_command_init(void)
|
||||
{
|
||||
fontstr = evas_stringshare_add("font");
|
||||
font_fallbacksstr = evas_stringshare_add("font_fallbacks");
|
||||
|
@ -891,7 +891,7 @@ _format_command_init()
|
|||
}
|
||||
|
||||
static void
|
||||
_format_command_shutdown()
|
||||
_format_command_shutdown(void)
|
||||
{
|
||||
evas_stringshare_del(fontstr);
|
||||
evas_stringshare_del(font_fallbacksstr);
|
||||
|
|
|
@ -185,7 +185,7 @@ evas_common_font_utf8_get_prev(unsigned char *buf, int *iindex)
|
|||
int index = *iindex, len, r;
|
||||
unsigned char d, d2, d3, d4;
|
||||
|
||||
if (iindex <= 0)
|
||||
if (index <= 0)
|
||||
return 0;
|
||||
d = buf[index--];
|
||||
|
||||
|
|
|
@ -332,7 +332,7 @@ evas_module_load(Evas_Module *em)
|
|||
}
|
||||
error_dl:
|
||||
{
|
||||
char *err;
|
||||
const char *err;
|
||||
|
||||
err = dlerror();
|
||||
printf("[evas module] error loading the module %s. %s\n", buf, err);
|
||||
|
|
Loading…
Reference in New Issue