ex_cmds*: Silence -Wstrict-prototypes warnings

Due to a number of places where headers generated from these files are included
gcc with -DEXITFREE produces *loads* of warnings for these functions.
This commit is contained in:
ZyX
2015-07-06 20:22:00 +03:00
parent 7fbefd585e
commit fea633d0fa
2 changed files with 2 additions and 2 deletions

View File

@@ -6135,7 +6135,7 @@ char_u * sign_typenr2name(int typenr)
/* /*
* Undefine/free all signs. * Undefine/free all signs.
*/ */
void free_signs() void free_signs(void)
{ {
while (first_sign != NULL) while (first_sign != NULL)
sign_undefine(first_sign, NULL); sign_undefine(first_sign, NULL);

View File

@@ -2624,7 +2624,7 @@ char_u *get_scriptname(scid_T id)
} }
# if defined(EXITFREE) # if defined(EXITFREE)
void free_scriptnames() void free_scriptnames(void)
{ {
# define FREE_SCRIPTNAME(item) xfree((item)->sn_name) # define FREE_SCRIPTNAME(item) xfree((item)->sn_name)
GA_DEEP_CLEAR(&script_items, scriptitem_T, FREE_SCRIPTNAME); GA_DEEP_CLEAR(&script_items, scriptitem_T, FREE_SCRIPTNAME);