This appears to have been in the code for a while, and it's a minor warning, 
but I thought I'd mention it.

gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -Wall -Wextra -pipe -std=gnu99 
-DNDEBUG  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/misc2.o misc2.c
misc2.c: In function 'put_time':
misc2.c:6289: warning: ignoring return value of 'fwrite', declared with 
attribute warn_unused_result


Looking at the code in question, we should probably be checking the return 
value of fwrite, but I'm not sure what the "best" solution would be to handle 
an error writing 8 bytes to the file handle.

My suggestion would be to make this a non-void function.

Here's the code in question with line numbers:

src/misc2.c

 6278 /*
 6279  * Write time_t to file "fd" in 8 bytes.
 6280  */
 6281     void
 6282 put_time(fd, the_time)
 6283     FILE^I*fd;
 6284     time_t^Ithe_time;
 6285 {
 6286     char_u^Ibuf[8];
 6287 
 6288     time_to_bytes(the_time, buf);
 6289     fwrite(buf, (size_t)8, (size_t)1, fd);
 6290 }

-- 
-- 
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