From 981a9947ea5dd800fa401c8db43c2bfc61482b32 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 15 May 2013 23:13:10 +0200 Subject: [PATCH] updated for version 7.3.960 Problem: Compiler warning for unused variable. Solution: Put declaration in #ifdef. --- src/version.c | 2 ++ src/window.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/version.c b/src/version.c index abdf18af2e..4ace0a0202 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 960, /**/ 959, /**/ 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