]> granicus.if.org Git - vim/commitdiff
patch 8.0.1307: compiler warning for ignoring return value v8.0.1307
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Nov 2017 20:35:24 +0000 (21:35 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Nov 2017 20:35:24 +0000 (21:35 +0100)
Problem:    Compiler warning for ignoring return value of ftruncate(). (Tony
            Mechelynck)
Solution:   Assign returned value to "ignore".

src/fileio.c
src/version.c

index e76e3d19aaf7420a27ff86e403fe355d8db037a0..2c5c8b9b4ad24cbd605d3b190ce800539ca07890 100644 (file)
@@ -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)
index c07635c3b03e962e979b1cf98f6dd6ebd94f6595..276f4fba00430e6290b7e54464e2557d864b156d 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1307,
 /**/
     1306,
 /**/