summaryrefslogtreecommitdiffstats
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
commit07729b25bf85f41822eae4978eb2097f31ac09d7 (patch)
tree1394145ad0f7dae9da60c83cb922dd2cf91feb13
parent54e8f005815342b9d1f5e92a766eb4783f5ad414 (diff)
updated for version 7.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 abdf18af2e..4ace0a0202 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 bbd8d1e518..aeba15f85b 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