mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
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:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user