From a7be0f2451f46d4940f3a4998e8f69297206739a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 11 Apr 2019 11:19:32 +0200 Subject: patch 8.1.1145: compiler warning for unused function Problem: Compiler warning for unused function. (Tony Mechelynck) Solution: Add #ifdef. --- src/option.c | 2 ++ src/version.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/option.c b/src/option.c index b0fad01ed..ba12fd4e6 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 1ffc75127..394f89c27 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1145, /**/ 1144, /**/ -- cgit v1.2.1