]> granicus.if.org Git - vim/commitdiff
patch 8.1.0745: compiler warnings for signed/unsigned string v8.1.0745
authorBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2019 19:16:40 +0000 (20:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2019 19:16:40 +0000 (20:16 +0100)
Problem:    Compiler warnings for signed/unsigned string.
Solution:   Remove type casts. (John Marriott)

src/ex_docmd.c
src/mbyte.c
src/version.c

index 112b67d29c92137a27a8c1ff7e84642968559ea1..6f9f1b98a03335912685bb98c0ae79f90ad7d570 100644 (file)
@@ -2290,7 +2290,7 @@ do_one_cmd(
        /* check these explicitly for a more specific error message */
        if (*ea.arg == '*' || *ea.arg == '+')
        {
-           errormsg = (char_u *)_(e_invalidreg);
+           errormsg = _(e_invalidreg);
            goto doend;
        }
 #endif
index 9c40072f4dc16dd6ee72d1b3b35b718add9e128c..66a3cc29d16626bdcc33c34f87aaf27eebf896f7 100644 (file)
@@ -560,7 +560,7 @@ mb_init(void)
        else if (GetLastError() == ERROR_INVALID_PARAMETER)
        {
 codepage_invalid:
-           return (char_u *)N_("E543: Not a valid codepage");
+           return N_("E543: Not a valid codepage");
        }
     }
 #endif
index 69bbcfc1f22b0c033d83cab0279b8d8dbd13f6f2..60d82d20697b9777714c7a30627fbf233dc71b37 100644 (file)
@@ -795,6 +795,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    745,
 /**/
     744,
 /**/