summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-05 21:24:23 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-05 21:24:23 +0100
commit53ec79537a062b453ed72a4efcb4b1cd284fe9a6 (patch)
treed2ec766edbad73075c88d71542e6e58874f33ee7
parentfb094e14c19337de824d4e6710ca6a2617930ab0 (diff)
patch 8.0.1272: warnings for unused variables in tiny buildv8.0.1272
Problem: Warnings for unused variables in tiny build. Solution: Add #ifdef. (Dominique Pelle, closes #2288)
-rw-r--r--src/term.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 977987c2b3..ef88705ffd 100644
--- 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]
diff --git a/src/version.c b/src/version.c
index de43d30df6..5d4fa892f9 100644
--- 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,