]> granicus.if.org Git - vim/commitdiff
patch 9.0.0127: unused variable v9.0.0127
authorzeertzjq <zeertzjq@outlook.com>
Mon, 1 Aug 2022 10:49:45 +0000 (11:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Aug 2022 10:49:45 +0000 (11:49 +0100)
Problem:    Unused variable.
Solution:   Remove the variable. (closes #10829)

src/map.c
src/version.c

index 96ccff02a24f16df9f51146a114914b8094c915c..3516f7ae2488a1223fbfada85b5ff09a35f339fb 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -2582,7 +2582,6 @@ get_map_mode_string(char_u *mode_string, int abbr)
     void
 f_mapset(typval_T *argvars, typval_T *rettv UNUSED)
 {
-    char_u     *keys_buf = NULL;
     char_u     *which;
     int                mode;
     char_u     buf[NUMBUFLEN];
@@ -2707,7 +2706,6 @@ f_mapset(typval_T *argvars, typval_T *rettv UNUSED)
        (void)map_add(map_table, abbr_table, lhsrawalt, rhs, orig_rhs, noremap,
                nowait, silent, mode, is_abbr, expr, sid, scriptversion,
                                                                      lnum, 1);
-    vim_free(keys_buf);
     vim_free(arg_buf);
 }
 #endif
index 3dfd3d96445f005d9c3760c687194631135c4f86..ac56f8c06ce1adfc02a2f6179fbf2cbb2324b67c 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    127,
 /**/
     126,
 /**/