diff src/option.c @ 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 36d97f2a4c2b
children a1229400434a
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.