mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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
|
#endif
|
||||||
#ifdef HAVE_FTRUNCATE
|
#ifdef HAVE_FTRUNCATE
|
||||||
if (!append)
|
if (!append)
|
||||||
ftruncate(fd, (off_t)0);
|
ignored = ftruncate(fd, (off_t)0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN3264)
|
#if defined(WIN3264)
|
||||||
|
@ -766,6 +766,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1307,
|
||||||
/**/
|
/**/
|
||||||
1306,
|
1306,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user