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:
parent
9e27217c48
commit
ae1e108caa
@ -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)
|
||||
|
@ -766,6 +766,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1307,
|
||||
/**/
|
||||
1306,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user