]> granicus.if.org Git - vim/commitdiff
patch 8.2.0086: build error for small version v8.2.0086
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Jan 2020 18:00:11 +0000 (19:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Jan 2020 18:00:11 +0000 (19:00 +0100)
Problem:    Build error for small version. (Tony Mechelynck)
Solution:   Only use "user_data" with the +eval feature. Remove unused
            variable.

src/dict.c
src/insexpand.c
src/version.c

index f170937b61631e600e3ead84e7845300a7c75577..a9a909bc2a771ba99ca4b979ae59e8139e4141da 100644 (file)
@@ -618,7 +618,6 @@ dict_find(dict_T *d, char_u *key, int len)
 dict_get_tv(dict_T *d, char_u *key, typval_T *rettv)
 {
     dictitem_T *di;
-    char_u     *s;
 
     di = dict_find(d, key, -1);
     if (di == NULL)
index 7407647490f663840a2b6ab5c2ef0161da754886..acddd2658cf213a11cb1832cc40f6e600be2f7dc 100644 (file)
@@ -103,7 +103,9 @@ struct compl_S
     compl_T    *cp_prev;
     char_u     *cp_str;        // matched text
     char_u     *(cp_text[CPT_COUNT]);  // text for the menu
+#ifdef FEAT_EVAL
     typval_T   cp_user_data;
+#endif
     char_u     *cp_fname;      // file containing the match, allocated when
                                // cp_flags has CP_FREE_FNAME
     int                cp_flags;       // CP_ values
@@ -647,8 +649,10 @@ ins_compl_add(
            if (cptext[i] != NULL && *cptext[i] != NUL)
                match->cp_text[i] = vim_strsave(cptext[i]);
     }
+#ifdef FEAT_EVAL
     if (user_data != NULL)
        match->cp_user_data = *user_data;
+#endif
 
     // Link the new match structure in the list of matches.
     if (compl_first_match == NULL)
@@ -1459,7 +1463,9 @@ ins_compl_free(void)
            vim_free(match->cp_fname);
        for (i = 0; i < CPT_COUNT; ++i)
            vim_free(match->cp_text[i]);
+#ifdef FEAT_EVAL
        clear_tv(&match->cp_user_data);
+#endif
        vim_free(match);
     } while (compl_curr_match != NULL && compl_curr_match != compl_first_match);
     compl_first_match = compl_curr_match = NULL;
index d159ceb3063e496041a3e7d5d4630d32bee1e875..eff491dc03ac5daa3cc813465fca369cdb50f277 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    86,
 /**/
     85,
 /**/