mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user