diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-11 11:19:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-11 11:19:32 +0200 |
commit | a7be0f2451f46d4940f3a4998e8f69297206739a (patch) | |
tree | 24afba8d0b0872930356be10160dac1b207f3d15 | |
parent | 862f1e17eaf2b9c6617dfba31d8487cde462658d (diff) | |
download | vim-git-a7be0f2451f46d4940f3a4998e8f69297206739a.tar.gz |
patch 8.1.1145: compiler warning for unused functionv8.1.1145
Problem: Compiler warning for unused function. (Tony Mechelynck)
Solution: Add #ifdef.
-rw-r--r-- | src/option.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index b0fad01ed..ba12fd4e6 100644 --- a/src/option.c +++ b/src/option.c @@ -6030,6 +6030,7 @@ valid_filetype(char_u *val) return valid_name(val, ".-_"); } +#if defined(FEAT_SPELL) || defined(PROTO) /* * Return TRUE if "val" is a valid 'spellang' value. */ @@ -6052,6 +6053,7 @@ valid_spellfile(char_u *val) return FALSE; return TRUE; } +#endif /* * Handle string options that need some action to perform when changed. diff --git a/src/version.c b/src/version.c index 1ffc75127..394f89c27 100644 --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1145, +/**/ 1144, /**/ 1143, |