[vim] 76/139: patch 7.4.1760 Problem: Compiler warning for unused variable. Solution: Add #ifdef. (John Marriott)

James McCoy jamessan at debian.org
Fri May 6 04:00:06 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 4445f7ee708f1a1304526a5979c9dd9883a92a0a
Author: Bram Moolenaar <Bram at vim.org>
Date:   Wed Apr 20 20:55:56 2016 +0200

    patch 7.4.1760
    Problem:    Compiler warning for unused variable.
    Solution:   Add #ifdef. (John Marriott)
---
 src/os_win32.c | 2 ++
 src/version.c  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/os_win32.c b/src/os_win32.c
index 159905d..dfc0d4d 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1446,7 +1446,9 @@ WaitForChar(long msec)
     INPUT_RECORD    ir;
     DWORD	    cRecords;
     WCHAR	    ch, ch2;
+#ifdef FEAT_TIMERS
     int		    tb_change_cnt = typebuf.tb_change_cnt;
+#endif
 
     if (msec > 0)
 	/* Wait until the specified time has elapsed. */
diff --git a/src/version.c b/src/version.c
index f550196..eeff8c6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1760,
+/**/
     1759,
 /**/
     1758,

-- 
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