changeset 12861:d07c1817dd98 v8.0.1307

patch 8.0.1307: compiler warning for ignoring return value commit https://github.com/vim/vim/commit/ae1e108caaa9ce2ca03076f8c4c10275f0c66b9c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 17 21:35:24 2017 +0100 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".
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Nov 2017 21:45:04 +0100
parents 0f8182e4c35b
children 9c21b0f08a37
files src/fileio.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,