summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-16 21:51:00 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-16 21:51:00 +0000
commit8329ab79b26be4c6c5766d80abae4a22385ee9e1 (patch)
treed46e9590ae32c935750a2dd4439d0ee50b83b729
parentcd1cda2f877aab5ec954e14bcba59076533529a4 (diff)
patch 8.2.4405: compiler warning for unused variable without +foldingv8.2.4405
Problem: Compiler warning for unused variable without the +folding feature. (Tony Mechelynck) Solution: Add #ifdef.
-rw-r--r--src/change.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/change.c b/src/change.c
index d1ecb60bbf..54ed684a6d 100644
--- 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
index 3c4e6b00f0..3b3beba786 100644
--- 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,