# HG changeset patch # User Bram Moolenaar # Date 1645048804 -3600 # Node ID 5a8258fde1d9e8acebc563ffa34b53c19e841eba # Parent 070988082b56fcd371d7869f1f9f79df83342c3c patch 8.2.4405: compiler warning for unused variable without +folding Commit: https://github.com/vim/vim/commit/8329ab79b26be4c6c5766d80abae4a22385ee9e1 Author: Bram Moolenaar Date: Wed Feb 16 21:51:00 2022 +0000 patch 8.2.4405: compiler warning for unused variable without +folding Problem: Compiler warning for unused variable without the +folding feature. (Tony Mechelynck) Solution: Add #ifdef. diff --git a/src/change.c b/src/change.c --- a/src/change.c +++ b/src/change.c @@ -552,8 +552,9 @@ changed_common( { if (wp->w_buffer == curbuf) { +#ifdef FEAT_FOLDING linenr_T last = lnume + xtra - 1; // last line after the change - +#endif // Mark this window to be redrawn later. if (wp->w_redr_type < VALID) wp->w_redr_type = VALID; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4405, +/**/ 4404, /**/ 4403,