From 8329ab79b26be4c6c5766d80abae4a22385ee9e1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 16 Feb 2022 21:51:00 +0000 Subject: 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. --- src/change.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/change.c') 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; -- cgit v1.2.3