0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.0.1307: compiler warning for ignoring return value

Problem:    Compiler warning for ignoring return value of ftruncate(). (Tony
            Mechelynck)
Solution:   Assign returned value to "ignore".
This commit is contained in:
Bram Moolenaar 2017-11-17 21:35:24 +01:00
parent 9e27217c48
commit ae1e108caa
2 changed files with 3 additions and 1 deletions

View File

@ -4517,7 +4517,7 @@ restore_backup:
#endif
#ifdef HAVE_FTRUNCATE
if (!append)
ftruncate(fd, (off_t)0);
ignored = ftruncate(fd, (off_t)0);
#endif
#if defined(WIN3264)

View File

@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1307,
/**/
1306,
/**/