summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-11 11:19:32 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-11 11:19:32 +0200
commita7be0f2451f46d4940f3a4998e8f69297206739a (patch)
tree24afba8d0b0872930356be10160dac1b207f3d15
parent862f1e17eaf2b9c6617dfba31d8487cde462658d (diff)
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.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index b0fad01ede..ba12fd4e65 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 1ffc751275..394f89c278 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,