]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.960 v7.3.960
authorBram Moolenaar <Bram@vim.org>
Wed, 15 May 2013 21:13:10 +0000 (23:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 15 May 2013 21:13:10 +0000 (23:13 +0200)
Problem:    Compiler warning for unused variable.
Solution:   Put declaration in #ifdef.

src/version.c
src/window.c

index abdf18af2ec7f2f4b89ab12157f0833492baf746..4ace0a0202bb9bc198ccb80bd9dbe03194182d1d 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    960,
 /**/
     959,
 /**/
index bbd8d1e518248972e4de3ffbfb3d99ab822cccab..aeba15f85b9c9b60e90bd600ef82858d1f0ab921 100644 (file)
@@ -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