Tony Mechelynck wrote:

> On Thu, Nov 16, 2017 at 11:04 PM, Bram Moolenaar <[email protected]> wrote:
> >
> > Patch 8.0.1305
> > Problem:    Writefile() never calls fsync().
> > Solution:   Follow the 'fsync' option with override to enable or disable.
> > Files:      src/fileio.c, src/evalfunc.c, runtime/doc/eval.txt, 
> > src/globals.h,
> >             src/testdir/test_writefile.vim
> >
> 
> The following warning (harmess, I suppose) appears for both Tiny and
> Huge (didn't try intermediate feature levels):
> 
> gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/fileio.o
> fileio.c
> fileio.c: In function ‘buf_write’:
> fileio.c:4520:12: warning: ignoring return value of ‘ftruncate’,
> declared with attribute warn_unused_result [-Wunused-result]
>    ftruncate(fd, (off_t)0);
>             ^

Doesn't happen for me. I'll assume assigning to "ignored" will help.

-- 
If someone questions your market projections, simply point out that your
target market is "People who are nuts" and "People who will buy any damn
thing".  Nobody is going to tell you there aren't enough of those people
to go around.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui