[vim] 115/139: patch 7.4.1798 Problem: Still compiler warning for unused return value. (Charles Campbell) Solution: Assign to ignoredp.

James McCoy jamessan at debian.org
Fri May 6 04:00:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch debian/sid
in repository vim.

commit bb82762907ba024717ad9af3b229c2fa6405cd36
Author: Bram Moolenaar <Bram at vim.org>
Date:   Fri Apr 29 22:33:27 2016 +0200

    patch 7.4.1798
    Problem:    Still compiler warning for unused return value. (Charles Campbell)
    Solution:   Assign to ignoredp.
---
 src/term.c    | 2 +-
 src/version.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/term.c b/src/term.c
index cc9d7ad..3c8c0fa 100644
--- a/src/term.c
+++ b/src/term.c
@@ -6177,7 +6177,7 @@ gui_get_color_cmn(char_u *name)
 	size_t		len;
 	int		pos;
 
-	(void)fgets(line, LINE_LEN, fd);
+	ignoredp = fgets(line, LINE_LEN, fd);
 	len = strlen(line);
 
 	if (len <= 1 || line[len - 1] != '\n')
diff --git a/src/version.c b/src/version.c
index 4fb17c4..44f37a7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1798,
+/**/
     1797,
 /**/
     1796,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git



More information about the pkg-vim-maintainers mailing list