1
0
forked from aniani/vim

patch 8.1.1145: compiler warning for unused function

Problem:    Compiler warning for unused function. (Tony Mechelynck)
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2019-04-11 11:19:32 +02:00
parent 862f1e17ea
commit a7be0f2451
2 changed files with 4 additions and 0 deletions

View File

@@ -6030,6 +6030,7 @@ valid_filetype(char_u *val)
return valid_name(val, ".-_"); return valid_name(val, ".-_");
} }
#if defined(FEAT_SPELL) || defined(PROTO)
/* /*
* Return TRUE if "val" is a valid 'spellang' value. * Return TRUE if "val" is a valid 'spellang' value.
*/ */
@@ -6052,6 +6053,7 @@ valid_spellfile(char_u *val)
return FALSE; return FALSE;
return TRUE; return TRUE;
} }
#endif
/* /*
* Handle string options that need some action to perform when changed. * Handle string options that need some action to perform when changed.

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1145,
/**/ /**/
1144, 1144,
/**/ /**/