# HG changeset patch # User Bram Moolenaar # Date 1554975006 -7200 # Node ID 1a4da6903913353bafa14418cbe29fbd41fa1117 # Parent ba3b1a2c0caf3bfaa4991d3ccc864d4ae0fac872 patch 8.1.1145: compiler warning for unused function commit https://github.com/vim/vim/commit/a7be0f2451f46d4940f3a4998e8f69297206739a Author: Bram Moolenaar 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. diff --git a/src/option.c b/src/option.c --- 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 --- 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,