fix some warnings, mostly missing "void" when a function has no parameters

SVN revision: 30474
This commit is contained in:
kiwi 2007-06-27 10:57:54 +00:00 committed by kiwi
parent ee938c5191
commit a001af9e23
8 changed files with 13 additions and 13 deletions

View File

@ -389,8 +389,8 @@ extern "C" {
EAPI void ecore_string_shutdown(void); EAPI void ecore_string_shutdown(void);
EAPI const char *ecore_string_instance(const char *string); EAPI const char *ecore_string_instance(const char *string);
EAPI void ecore_string_release(const char *string); EAPI void ecore_string_release(const char *string);
EAPI void ecore_string_hash_dump_graph(); EAPI void ecore_string_hash_dump_graph(void);
EAPI void ecore_string_hash_dump_stats(); EAPI void ecore_string_hash_dump_stats(void);
typedef struct _Ecore_Tree_Node Ecore_Tree_Node; typedef struct _Ecore_Tree_Node Ecore_Tree_Node;

View File

@ -103,13 +103,13 @@ ecore_string_release(const char *string)
} }
EAPI void EAPI void
ecore_string_hash_dump_graph() ecore_string_hash_dump_graph(void)
{ {
ecore_hash_dump_graph(ecore_strings); ecore_hash_dump_graph(ecore_strings);
} }
EAPI void EAPI void
ecore_string_hash_dump_stats() ecore_string_hash_dump_stats(void)
{ {
ecore_hash_dump_stats(ecore_strings); ecore_hash_dump_stats(ecore_strings);
} }

View File

@ -426,7 +426,7 @@ efreet_util_desktop_comment_glob_list(const char *glob)
* @return an Ecore_List of category names (const char *) * @return an Ecore_List of category names (const char *)
*/ */
Ecore_List * Ecore_List *
efreet_util_desktop_categories_list() efreet_util_desktop_categories_list(void)
{ {
return ecore_hash_keys(desktops_by_category); 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(). * @return An ecore list of menu file paths (const char *). This must be freed with ecore_list_destroy().
*/ */
Ecore_List * Ecore_List *
efreet_util_menus_find() efreet_util_menus_find(void)
{ {
Ecore_List *menus, *dirs; Ecore_List *menus, *dirs;
const char *dir; const char *dir;

View File

@ -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_generic_name_glob_list(const char *glob);
Ecore_List *efreet_util_desktop_comment_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_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_LIST_CHANGE;
extern int EFREET_EVENT_DESKTOP_CHANGE; extern int EFREET_EVENT_DESKTOP_CHANGE;

View File

@ -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 * for us. so that means EXCESS elements are all declared as OP_NONE to
* keep them innocuous. * keep them innocuous.
*/ */
const static void *switchtable[256] = static const void *switchtable[256] =
{ {
&&SWITCHTABLE_EMBRYO_OP_NONE, &&SWITCHTABLE_EMBRYO_OP_NONE,
&&SWITCHTABLE_EMBRYO_OP_LOAD_PRI, &&SWITCHTABLE_EMBRYO_OP_LOAD_PRI,

View File

@ -863,7 +863,7 @@ static const char *stylestr;
static const char *tabstopsstr; static const char *tabstopsstr;
static void static void
_format_command_init() _format_command_init(void)
{ {
fontstr = evas_stringshare_add("font"); fontstr = evas_stringshare_add("font");
font_fallbacksstr = evas_stringshare_add("font_fallbacks"); font_fallbacksstr = evas_stringshare_add("font_fallbacks");
@ -891,7 +891,7 @@ _format_command_init()
} }
static void static void
_format_command_shutdown() _format_command_shutdown(void)
{ {
evas_stringshare_del(fontstr); evas_stringshare_del(fontstr);
evas_stringshare_del(font_fallbacksstr); evas_stringshare_del(font_fallbacksstr);

View File

@ -185,7 +185,7 @@ evas_common_font_utf8_get_prev(unsigned char *buf, int *iindex)
int index = *iindex, len, r; int index = *iindex, len, r;
unsigned char d, d2, d3, d4; unsigned char d, d2, d3, d4;
if (iindex <= 0) if (index <= 0)
return 0; return 0;
d = buf[index--]; d = buf[index--];

View File

@ -332,7 +332,7 @@ evas_module_load(Evas_Module *em)
} }
error_dl: error_dl:
{ {
char *err; const char *err;
err = dlerror(); err = dlerror();
printf("[evas module] error loading the module %s. %s\n", buf, err); printf("[evas module] error loading the module %s. %s\n", buf, err);