updated for version 7.3.960
Problem:    Compiler warning for unused variable.
Solution:   Put declaration in #ifdef.
diff --git a/src/window.c b/src/window.c
index bbd8d1e..aeba15f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2124,7 +2124,9 @@
 {
     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