]> granicus.if.org Git - vim/commitdiff
patch 8.2.2350: using "void" for no reason v8.2.2350
authorBram Moolenaar <Bram@vim.org>
Thu, 14 Jan 2021 20:40:22 +0000 (21:40 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 14 Jan 2021 20:40:22 +0000 (21:40 +0100)
Problem:    Using "void" for no reason.
Solution:   Use "char *".

src/ex_docmd.c
src/version.c

index a71adb874c408f01be0ad0056a2cdefca11caa4b..7fe33d8e5f4b0fa74247573db6f577979b2428b6 100644 (file)
@@ -1268,7 +1268,7 @@ do_cmdline(
         */
        if (did_throw)
        {
-           void        *p = NULL;
+           char        *p = NULL;
            msglist_T   *messages = NULL, *next;
 
            /*
@@ -1283,7 +1283,7 @@ do_cmdline(
                    vim_snprintf((char *)IObuff, IOSIZE,
                            _("E605: Exception not caught: %s"),
                            current_exception->value);
-                   p = vim_strsave(IObuff);
+                   p = (char *)vim_strsave(IObuff);
                    break;
                case ET_ERROR:
                    messages = current_exception->messages;
index 48ba60f2f054c882651812769f2ce11a48e0eeb7..616f4ede8509df5cab57561869ca4960e69c367d 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2350,
 /**/
     2349,
 /**/