changeset 12790:305693246ff6 v8.0.1272

patch 8.0.1272: warnings for unused variables in tiny build commit https://github.com/vim/vim/commit/53ec79537a062b453ed72a4efcb4b1cd284fe9a6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 5 21:24:23 2017 +0100 patch 8.0.1272: warnings for unused variables in tiny build Problem: Warnings for unused variables in tiny build. Solution: Add #ifdef. (Dominique Pelle, closes https://github.com/vim/vim/issues/2288)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Nov 2017 21:30:04 +0100
parents 2c8b45505ae0
children 974205916633
files src/term.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4757,10 +4757,11 @@ check_termcode(
 			if (i - j >= 21 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
 			    && tp[j + 11] == '/' && tp[j + 16] == '/')
 			{
+#ifdef FEAT_TERMINAL
 			    int rval = hexhex2nr(tp + j + 7);
 			    int gval = hexhex2nr(tp + j + 12);
 			    int bval = hexhex2nr(tp + j + 17);
-
+#endif
 			    if (is_bg)
 			    {
 				char *newval = (3 * '6' < tp[j+7] + tp[j+12]
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1272,
+/**/
     1271,
 /**/
     1270,