diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-17 21:35:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-17 21:35:24 +0100 |
commit | ae1e108caaa9ce2ca03076f8c4c10275f0c66b9c (patch) | |
tree | 6087a72979bcca57dfd8d03ecb81d44f2f284462 /src/fileio.c | |
parent | 9e27217c489c6eca2bd98d1c9fa89c1b652ed792 (diff) | |
download | vim-git-ae1e108caaa9ce2ca03076f8c4c10275f0c66b9c.tar.gz |
patch 8.0.1307: compiler warning for ignoring return valuev8.0.1307
Problem: Compiler warning for ignoring return value of ftruncate(). (Tony
Mechelynck)
Solution: Assign returned value to "ignore".
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index e76e3d19a..2c5c8b9b4 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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) |