commit | bb82762907ba024717ad9af3b229c2fa6405cd36 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Apr 29 22:33:27 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Apr 29 22:33:27 2016 +0200 |
tree | bd20900accf33bdad771c19aaed19c819e797ae4 | |
parent | c61348e83fd4eed8b999fe5b7cdfb4caf90bf3fd [diff] [blame] |
patch 7.4.1798 Problem: Still compiler warning for unused return value. (Charles Campbell) Solution: Assign to ignoredp.
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 @@ 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')