changeset 27758:5a8258fde1d9 v8.2.4405

patch 8.2.4405: compiler warning for unused variable without +folding Commit: https://github.com/vim/vim/commit/8329ab79b26be4c6c5766d80abae4a22385ee9e1 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 23:00:04 +0100
parents 070988082b56
children b7765eaaec8b
files src/change.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,