Patch 7.4.657 (after 7.4.656)
Problem:    Compiler warnings for pointer mismatch.
Solution:   Add a typecast. (John Marriott)
Files:      src/misc1.c


*** ../vim-7.4.656/src/misc1.c  2015-03-05 21:21:14.497360702 +0100
--- src/misc1.c 2015-03-06 21:34:00.343452890 +0100
***************
*** 10175,10181 ****
                    if (*path_end != NUL)
                        backslash_halve(buf + len + 1);
                    /* add existing file or symbolic link */
!                   if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0
                                                      : mch_getperm(buf) >= 0)
                    {
  #ifdef MACOS_CONVERT
--- 10175,10181 ----
                    if (*path_end != NUL)
                        backslash_halve(buf + len + 1);
                    /* add existing file or symbolic link */
!                   if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
                                                      : mch_getperm(buf) >= 0)
                    {
  #ifdef MACOS_CONVERT
***************
*** 10937,10943 ****
  
      /* 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))
        return;
  
  #ifdef FNAME_ILLEGAL
--- 10937,10943 ----
  
      /* if the file/dir/link doesn't exist, may not add it */
      if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
!                       ? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))
        return;
  
  #ifdef FNAME_ILLEGAL
*** ../vim-7.4.656/src/version.c        2015-03-05 21:21:14.497360702 +0100
--- src/version.c       2015-03-06 21:35:14.050606301 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     657,
  /**/

-- 
You got to work at a mill?  Lucky!  I got sent back to work in the
acid-mines for my daily crust of stale bread... which not even the
birds would eat.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui