Dominique Pelle wrote: > tux wrote: > > > Bram Moolenaar schrob am 17.12.2010 16:27: > >> > >> Patch 7.3.083 > > > > ... can't compile: > > Fatal error C1070 (VS2010) in fileio.c in line 10350. > > > It's probably because the code makes pointer arithmetic > with a void * pointer (which is specific to gcc). Compiling > with gcc -pedantic option gives a warning: > > fileio.c:10339: warning: pointer of type ‘void *’ used in arithmetic > > The line number (10339) is different than your line number (13350) > but it's close. Adding a cast should fix it: > > $ hg diff fileio.c > diff -r 033e7b49356c src/fileio.c > --- a/src/fileio.c Fri Dec 17 16:27:16 2010 +0100 > +++ b/src/fileio.c Fri Dec 17 16:43:51 2010 +0100 > @@ -10336,7 +10336,7 @@ > * by a signal. */ > while (ret < (long)bufsize) > { > - wlen = vim_write(fd, buf + ret, bufsize - ret); > + wlen = vim_write(fd, (char *)buf + ret, bufsize - ret); > if (wlen < 0) > { > if (errno != EINTR)
That's one fix. I think the other problems can be fixed by including vimio.h from vim.h, instead of only where it's needed. I've been thinking of this simplification before, now would be a right time to do it. Let me know if there are still problems after patch 7.3.085. -- How To Keep A Healthy Level Of Insanity: 13. Go to a poetry recital and ask why the poems don't rhyme. /// 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