changeset 4423:e67522c4f566 v7.3.960

updated for version 7.3.960 Problem: Compiler warning for unused variable. Solution: Put declaration in #ifdef.
author Bram Moolenaar <bram@vim.org>
date Wed, 15 May 2013 23:13:10 +0200
parents ed236f59b41d
children e56bf2af53c0
files src/version.c src/window.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- a/src/window.c
+++ b/src/window.c
@@ -2124,7 +2124,9 @@ close_last_window_tabpage(win, free_buf,
 {
     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