summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-17 21:35:24 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-17 21:35:24 +0100
commitae1e108caaa9ce2ca03076f8c4c10275f0c66b9c (patch)
tree6087a72979bcca57dfd8d03ecb81d44f2f284462 /src
parent9e27217c489c6eca2bd98d1c9fa89c1b652ed792 (diff)
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')
-rw-r--r--src/fileio.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index e76e3d19aa..2c5c8b9b4a 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)
diff --git a/src/version.c b/src/version.c
index c07635c3b0..276f4fba00 100644
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1307,
+/**/
1306,
/**/
1305,