]> granicus.if.org Git - vim/commitdiff
patch 8.0.1272: warnings for unused variables in tiny build v8.0.1272
authorBram Moolenaar <Bram@vim.org>
Sun, 5 Nov 2017 20:24:23 +0000 (21:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 5 Nov 2017 20:24:23 +0000 (21:24 +0100)
Problem:    Warnings for unused variables in tiny build.
Solution:   Add #ifdef. (Dominique Pelle, closes #2288)

src/term.c
src/version.c

index 977987c2b39bc96d0c06d45812979a24af6da2c3..ef88705ffdef6376546d4df6c306d830c7ebd156 100644 (file)
@@ -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]
index de43d30df6ff40645ec6fef3fffbe5de48ed3a85..5d4fa892f930a0397bf49f213b47f96014d8cba4 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1272,
 /**/
     1271,
 /**/