]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.657 v7.4.657
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Mar 2015 21:00:11 +0000 (22:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Mar 2015 21:00:11 +0000 (22:00 +0100)
Problem:    Compiler warnings for pointer mismatch.
Solution:   Add a typecast. (John Marriott)

src/misc1.c
src/version.c

index 4ff89ad0cc22dcb372e0f3b7d8b28c072d4bc1be..ac87ef8fc488bbc07e64a4dff60bc49919880d6d 100644 (file)
@@ -10175,7 +10175,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
                    if (*path_end != NUL)
                        backslash_halve(buf + len + 1);
                    /* add existing file or symbolic link */
-                   if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0
+                   if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
                                                      : mch_getperm(buf) >= 0)
                    {
 #ifdef MACOS_CONVERT
@@ -10937,7 +10937,7 @@ addfile(gap, f, flags)
 
     /* if the file/dir/link doesn't exist, may not add it */
     if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
-                               ? mch_lstat(f, &sb) < 0 : mch_getperm(f) < 0))
+                       ? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))
        return;
 
 #ifdef FNAME_ILLEGAL
index 7a3579a6ed8ac91e1da597ea3c098b7b01406d33..0e39cfbf17d85ecf860d76a183d67b11f82b8bcf 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    657,
 /**/
     656,
 /**/