summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-05 20:13:35 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-05 20:13:35 +0100
commit40d3f137e751c0e9f5e7e6a587b93a52dd833d04 (patch)
tree611ea56fbd8991c7e5b3b557fdf1cbf3c394503e /src/option.c
parenteb828d01d9c91791fa1fe217ba651cdc25746d1b (diff)
downloadvim-git-40d3f137e751c0e9f5e7e6a587b93a52dd833d04.tar.gz
patch 8.0.0065v8.0.0065
Problem: Compiler warning for unused function in tiny build. (Tony Mechelynck) Solution: Add #ifdef.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 8eea1f876..c32a2a4f0 100644
--- a/src/option.c
+++ b/src/option.c
@@ -5822,6 +5822,7 @@ set_string_option(
return r;
}
+#if defined(FEAT_KEYMAP) || defined(FEAT_AUTOCMD) || defined(FEAT_SYN_HL)
/*
* Return TRUE if "val" is a valid 'filetype' name.
* Also used for 'syntax' and 'keymap'.
@@ -5836,6 +5837,7 @@ valid_filetype(char_u *val)
return FALSE;
return TRUE;
}
+#endif
/*
* Handle string options that need some action to perform when changed.