summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-05-15 23:13:10 +0200
committerBram Moolenaar <bram@vim.org>2013-05-15 23:13:10 +0200
commite0cbfe37fa172748b1443922bb77414dc21eb491 (patch)
treedc9917099368db490a05e2f48d38dc0282d55275
parente67cc2da07c8ea53c54d7984ca172b077e8167a9 (diff)
downloadvim-7-3-960.tar.gz
updated for version 7.3.960v7.3.960v7-3-960
Problem: Compiler warning for unused variable. Solution: Put declaration in #ifdef.
-rw-r--r--src/version.c2
-rw-r--r--src/window.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
index abdf18af..4ace0a02 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 960,
+/**/
959,
/**/
958,
diff --git a/src/window.c b/src/window.c
index bbd8d1e5..aeba15f8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2124,7 +2124,9 @@ close_last_window_tabpage(win, free_buf, prev_curtab)
{
if (firstwin == lastwin)
{
+#ifdef FEAT_AUTOCMD
buf_T *old_curbuf = curbuf;
+#endif
/*
* Closing the last window in a tab page. First go to another tab