Permalink
Browse files

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".
  • Loading branch information...
brammool committed Nov 17, 2017
1 parent 9e27217 commit ae1e108caaa9ce2ca03076f8c4c10275f0c66b9c
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/fileio.c
  2. +2 −0 src/version.c
View
@@ -4517,7 +4517,7 @@ buf_write(
#endif
#ifdef HAVE_FTRUNCATE
if (!append)
ftruncate(fd, (off_t)0);
ignored = ftruncate(fd, (off_t)0);
#endif
#if defined(WIN3264)
View
@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1307,
/**/
1306,
/**/

0 comments on commit ae1e108

Please sign in to comment.