Mercurial > vim
changeset 25505:040a45d39570 v8.2.3289
patch 8.2.3289: compiler warning for unused variable with small features
Commit: https://github.com/vim/vim/commit/f18e8a969a3414ed5e6b7159c40fe43963021ff3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 4 21:16:50 2021 +0200
patch 8.2.3289: compiler warning for unused variable with small features
Problem: Compiler warning for unused variable with small features.
Solution: Rearrange #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Aug 2021 21:30:04 +0200 |
parents | 3123cc59d283 |
children | 743c0fa9dd79 |
files | src/version.c src/window.c |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3289, +/**/ 3288, /**/ 3287,
--- a/src/window.c +++ b/src/window.c @@ -2484,7 +2484,9 @@ win_close(win_T *win, int free_buf) #ifdef FEAT_DIFF int had_diffmode = win->w_p_diff; #endif +#ifdef MESSAGE_QUEUE int did_decrement = FALSE; +#endif #if defined(FEAT_TERMINAL) && defined(FEAT_PROP_POPUP) // Can close a popup window with a terminal if the job has finished. @@ -2665,7 +2667,12 @@ win_close(win_T *win, int free_buf) { // Pass WEE_ALLOW_PARSE_MESSAGES to decrement dont_parse_messages // before autocommands. - did_decrement = win_enter_ext(wp, +#ifdef MESSAGE_QUEUE + did_decrement = +#else + (void) +#endif + win_enter_ext(wp, WEE_CURWIN_INVALID | WEE_TRIGGER_ENTER_AUTOCMDS | WEE_TRIGGER_LEAVE_AUTOCMDS | WEE_ALLOW_PARSE_MESSAGES); if (other_buffer)