]> granicus.if.org Git - vim/commitdiff
patch 8.1.1145: compiler warning for unused function v8.1.1145
authorBram Moolenaar <Bram@vim.org>
Thu, 11 Apr 2019 09:19:32 +0000 (11:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 11 Apr 2019 09:19:32 +0000 (11:19 +0200)
Problem:    Compiler warning for unused function. (Tony Mechelynck)
Solution:   Add #ifdef.

src/option.c
src/version.c

index b0fad01ede850fbc7ffa83c33f03a838a03cc893..ba12fd4e653204b41dd9033ee80bbae92ade339e 100644 (file)
@@ -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.
index 1ffc751275d305c0da88f571fe2f4896934a9a2f..394f89c2789d140be7b6c4c1ca18f6315504831f 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1145,
 /**/
     1144,
 /**/