changeset 23616:8b6d289d182e v8.2.2350

patch 8.2.2350: using "void" for no reason Commit: https://github.com/vim/vim/commit/033135eb8eccd00c9ee72c6c0cf4b8b9f81bd269 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 14 21:40:22 2021 +0100 patch 8.2.2350: using "void" for no reason Problem: Using "void" for no reason. Solution: Use "char *".
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Jan 2021 21:45:05 +0100
parents c96dd2e2ada2
children d56613e7b15e
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2350,
+/**/
     2349,
 /**/
     2348,