]> granicus.if.org Git - vim/commitdiff
patch 8.2.4405: compiler warning for unused variable without +folding v8.2.4405
authorBram Moolenaar <Bram@vim.org>
Wed, 16 Feb 2022 21:51:00 +0000 (21:51 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 16 Feb 2022 21:51:00 +0000 (21:51 +0000)
Problem:    Compiler warning for unused variable without the +folding feature.
            (Tony Mechelynck)
Solution:   Add #ifdef.

src/change.c
src/version.c

index d1ecb60bbf42f66111dbd52e94f6bb51211659cf..54ed684a6de1d910f6f55b7ac8c1b070ea05baa0 100644 (file)
@@ -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;
index 3c4e6b00f0745ea26ed00bf48fbf5f9b52141af7..3b3beba78677f81b9a7739280ac559df1c9e0865 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4405,
 /**/
     4404,
 /**/