changeset 16281:1a4da6903913 v8.1.1145

patch 8.1.1145: compiler warning for unused function commit https://github.com/vim/vim/commit/a7be0f2451f46d4940f3a4998e8f69297206739a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 11 11:19:32 2019 +0200 patch 8.1.1145: compiler warning for unused function Problem: Compiler warning for unused function. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 11 Apr 2019 11:30:06 +0200
parents ba3b1a2c0caf
children 27be2971448c
files src/option.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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,